You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a shader with a uniform variable of type bool
What is the expected result?
I expect it to work
What happens instead?
Crashes with panic: runtime error: slice bounds out of range [:-1]
Anything else you feel useful to add?
After checking the source, it does look like bool types are not at all implemented for uniforms.
If this is a technical limitation, it should instead be added to the documentation (or maybe it is and I didn't find it).
The text was updated successfully, but these errors were encountered:
A bool value as a uniform value is not working so far. At least, this panic should not happen (so this is actually a bug), but I think it should be easy to implement a bool uniform variable.
Ebitengine Version
2.8.5
Operating System
Go Version (
go version
)1.23.3
What steps will reproduce the problem?
Create a shader with a uniform variable of type
bool
What is the expected result?
I expect it to work
What happens instead?
Crashes with
panic: runtime error: slice bounds out of range [:-1]
Anything else you feel useful to add?
After checking the source, it does look like bool types are not at all implemented for uniforms.
If this is a technical limitation, it should instead be added to the documentation (or maybe it is and I didn't find it).
The text was updated successfully, but these errors were encountered: