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-in: Fix memory qualifiers being inverted #1779

Merged
merged 1 commit into from
Mar 27, 2022

Conversation

JCapucho
Copy link
Collaborator

Adds some documentation to better explain how the memory qualifier works
troughout the parser and some storage textures tests.

Closes #1770

Adds some documentation to better explain how the memory qualifier works
troughout the parser and some storage textures tests.
src/front/glsl/parser/types.rs Show resolved Hide resolved
if let Some((restricted_access, _)) = qualifiers.storage_acess.take() {
access.remove(restricted_access);
if let Some((allowed_access, _)) = qualifiers.storage_acess.take() {
*access = allowed_access;
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be *access &= allowed_access; instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's the same thing since the only way to change access which defaults to all is trough memory qualifiers

src/front/glsl/variables.rs Show resolved Hide resolved
@JCapucho JCapucho requested a review from kvark March 25, 2022 23:09
@kvark kvark merged commit b568bfb into gfx-rs:master Mar 27, 2022
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.

[glsl-in] writeonly images
3 participants