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

layout(binding=0) uniform sampler2D requires #version 420 core #48

Open
solosnake opened this issue Feb 10, 2023 · 0 comments
Open

layout(binding=0) uniform sampler2D requires #version 420 core #48

solosnake opened this issue Feb 10, 2023 · 0 comments

Comments

@solosnake
Copy link

Problem:
I got this when running the bumpmapping example:

VERSION: 4.6 (Core Profile) Mesa 21.2.6
RENDERER: Mesa Intel(R) UHD Graphics (CML GT2)
media/shaders/bumpmapping/bumpmapping.fs.glsl: 0:6(9): error: unrecognized layout identifier `binding'

The example application does not render correctly.


Fix:
The bumpmapping.fs.glsl shader has #version 410 core. Changing this to #version 420 core will fix this issue, and the example appears correct.

binding was made core in 4.2 and so may not work as expected in 4.1. Some drivers may have not enforced this.


I would have opened a pull request to address this, but was not able to. Thanks.

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