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
v2.7.3
go version
go1.22.2
//kage:unit pixels package main func Fragment(_ vec4, sourceCoords vec2, _ vec4) vec4 { const Red = false if Red { return vec4(1, 0, 0, 1) } else { return imageSrc0At(sourceCoords) } }
Shader compiles.
Panic:
6:2: if-condition must be bool but: none
I've seen #2797, but this is not exactly the same, and it's happening on v.2.7.3.
Notice that using a bool directly (or 0 == 0, as in the previous issue) instead of the constant does work correctly.
0 == 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ebitengine Version
v2.7.3
Operating System
Go Version (
go version
)go1.22.2
What steps will reproduce the problem?
What is the expected result?
Shader compiles.
What happens instead?
Panic:
Anything else you feel useful to add?
I've seen #2797, but this is not exactly the same, and it's happening on v.2.7.3.
Notice that using a bool directly (or
0 == 0
, as in the previous issue) instead of the constant does work correctly.The text was updated successfully, but these errors were encountered: