Closed maierfelix closed 2 years ago
Can you share the error message you get with const uvec3 SWIZZLE_ROT[24]
?
If I read this reference page correctly, this should be allowed: https://www.khronos.org/files/webgl20-reference-guide.pdf (look for Structures and Arrays
)
After reading this, I tried it again and WebGL now seems to accept the trailing brackets. No idea why it's suddenly working, I must have messed up somewhere.
Thanks for your project btw!
For arrays like this:
I'm getting:
I found that swapping the brackets to the end makes the minifier work again:
But unfortunately I'm using WebGL2, which expects the brackets before the variable identifier, and not afterwards.