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

Don't use layout qualifiers to allow for GLSL 140 support #2575

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Oct 20, 2023

This avoids emitting layout qualifiers for shader I/O to allow sufficient GLSL 140 support for the wgpu cube example. These must instead of bound by OpenGL code using the new varying field of ReflectionInfo.

Precision qualifiers are changed to only be emitted for ES.

@Zoxc Zoxc requested a review from a team as a code owner October 20, 2023 17:19
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.

Looks good but can you update the ron files for:

  • interpolate
  • bounds-check-image-rzsw
  • bounds-check-image-restrict

to target ES? I think it wasn't meant for them to target desktop GL.

@Zoxc
Copy link
Contributor Author

Zoxc commented Oct 23, 2023

They all seem to use non-ES features.

@teoxoy
Copy link
Member

teoxoy commented Oct 24, 2023

Ah, I see.

@teoxoy teoxoy merged commit d105909 into gfx-rs:master Oct 24, 2023
6 checks passed
@Zoxc Zoxc deleted the gl-3.1 branch October 24, 2023 10:12
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