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

--glsl-version flag for glslangValidator.exe does not work #3828

Open
mehlian opened this issue Jan 3, 2025 · 0 comments
Open

--glsl-version flag for glslangValidator.exe does not work #3828

mehlian opened this issue Jan 3, 2025 · 0 comments

Comments

@mehlian
Copy link

mehlian commented Jan 3, 2025

Repro:

  1. create shader file 'test.vert'
#version 300 es
layout (location = 0) uniform vec4 test;
void main()
{
}
  1. test file using glslangValidator.exe
    glslangValidator.exe -S vert --glsl-version 310es test.vert
  2. result:
    ERROR: 0:1: 'location qualifier on uniform or buffer' : not supported for this version or the enabled extensions ERROR: 1 compilation errors. No code generated.
  3. expected behavior:
    code compiles

After changing #version 300 es in source code to #version 310 es error is gone.

Glslang Version: 11:15.1.0

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

No branches or pull requests

1 participant