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

Shader cannot use unsigned int suffix with hex #78800

Closed
Kinwailo opened this issue Jun 28, 2023 · 3 comments · Fixed by #78906
Closed

Shader cannot use unsigned int suffix with hex #78800

Kinwailo opened this issue Jun 28, 2023 · 3 comments · Fixed by #78906

Comments

@Kinwailo
Copy link

Godot version

4.0.3

System information

Win7

Issue description

image

Steps to reproduce

  1. Create shader
  2. Add uint with hex, e.g. 0xffffu

Minimal reproduction project

N/A

@Calinou
Copy link
Member

Calinou commented Jun 28, 2023

Is this valid in the GLSL specification, including OpenGL ES 3.0 (for the Compatibility rendering method)?

@AThousandShips
Copy link
Member

It is in GLSL 4.6 at least according to the specs

@Kinwailo
Copy link
Author

Kinwailo commented Jun 28, 2023

I search some glsl code, it doesn't force to use "u" suffix value assign to uint.
In gdshader, it don't allow to use: uint a = 1;

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

Successfully merging a pull request may close this issue.

4 participants