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

Revert "Make shader write&read storage buffers match non readonly layouts" #3984

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Jul 27, 2023

This reverts commit 17143c1 (#3893) as it changed validation in a non-spec compliant way.

Relevant Spec Text:

image

Even if we want to relax the validation, this won't work for dx12 as we use UAVs for read-write storage buffers and SRVs for read-only storage buffers.

I think we should remove write-only storage buffers as they are not part of the spec anymore (avoiding #2897 altogether). Related: #4411

Found while investigating #3983.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Makes sense to me. Thanks for catching this!

@cwfitzgerald cwfitzgerald merged commit 01160c3 into gfx-rs:trunk Jul 27, 2023
20 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