Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

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.
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

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[glsl-in] writeonly images
3 participants