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

Naga: GLSL 410 does not support layout(binding = ...) #5357

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

bes
Copy link
Contributor

@bes bes commented Mar 6, 2024

Description
Naga assumed that GLSL 410 supported layout(binding = ...) but it does not, it only supports layout(location = ...). It is not possible to enable only layout(location = ...) currently, so we need to predicate the feature on GLSL 420 instead.

Testing
Tested locally using Bevy on macOS with OpenGL 4.1.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@bes bes requested a review from a team as a code owner March 6, 2024 19:38
Naga assumed that GLSL 410 supported layout(binding = ...) but it does not,
it only supports layout(location = ...). It is not possible to enable only
layout(location = ...) currently, so we need to predicate the feature on GLSL
420 instead.
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@teoxoy teoxoy merged commit d417433 into gfx-rs:trunk Mar 7, 2024
27 checks passed
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 this pull request may close these issues.

2 participants