We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encountered when trying to minify a shader that already used some codegolf tricks. This legal GLSL:
out vec4 O; uniform int k; void main() { int d=0,e=0; k==0 ? d=1 : e=2 ; // if(k==0) d=1 ; else e=2 ; // semantically equivalent O.x=d; O.y=e; }
results in both assignments being evaluated:
out vec4 O; uniform int k; void main() { int d=0,e=0; d=1,e=2; O.x=d; O.y=e; }
using the commented line instead, result is correct, but misses the opportunity to use ternary operator trick.
The text was updated successfully, but these errors were encountered:
Fixes #385
29ceb3c
8ae5343
No branches or pull requests
Encountered when trying to minify a shader that already used some codegolf tricks.
This legal GLSL:
results in both assignments being evaluated:
using the commented line instead, result is correct, but misses the opportunity to use ternary operator trick.
The text was updated successfully, but these errors were encountered: