-
Notifications
You must be signed in to change notification settings - Fork 938
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
Strange usage of TextureFormatFeatureFlags::STORAGE_READ_WRITE #6599
Comments
That does look wrong, we need a new |
Question: Looking at the spec. section on |
That sounds correct to me. |
Ah yes, you are right, I forgot we can't treat the presence of both |
Apparently I forgot to click "comment" 😅 |
Yeah im aware, thats what i raised here: #6601 i thought that we could choose the semantics though, as long as their consistent. im not aware how much of this is spec defined. using 3 bits for this when 2 is enough to represent all states just feels a bit weird. what happens when you set both i feel like read_write should be represented by |
The problem is that a format can support |
isnt that the same as not setting
|
No flag should mean that it doesn't support/use storage usage at all. |
ahh okay. i am convinced that we should mirror the spec as closely as possible then, i'll get some PRs up this weekend |
idk whats going on here but it looks wrong. if its not wrong it needs docs. why is read_write needed for read_only? why is write_only never checked?
wgpu/wgpu-core/src/device/resource.rs
Lines 2496 to 2506 in c22c062
The text was updated successfully, but these errors were encountered: