Skip to content
New issue

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

uniforms of type bool are transpiled as uint when targeting #version 100 #2223

Closed
elizagamedev opened this issue Nov 7, 2023 · 0 comments · Fixed by #2227
Closed

uniforms of type bool are transpiled as uint when targeting #version 100 #2223

elizagamedev opened this issue Nov 7, 2023 · 0 comments · Fixed by #2227

Comments

@elizagamedev
Copy link
Contributor

As the title says. This results in an exception

Unsigned integers are not supported on legacy ESSL.

To reproduce:

#version 310 es

layout(binding = 0) uniform Foo {
  bool bar;
} foo;

void main() {}

Disabling the relevant checks in spirv_glsl.cpp showed that bar was indeed changed into a uint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant