mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
Improve STORAGE_READ support for buffers
This commit is contained in:
1 parent
ad7045455c
commit
ec54038e7c
1 file changed
+3
@@ -516,6 +516,9 @@ pub fn map_buffer_state(usage: resource::BufferUsage) -> hal::buffer::State {
|
||||
if usage.contains(W::UNIFORM) {
|
||||
access |= A::UNIFORM_READ | A::SHADER_READ;
|
||||
}
|
||||
if usage.contains(W::STORAGE_READ) {
|
||||
access |= A::SHADER_READ;
|
||||
}
|
||||
if usage.contains(W::STORAGE) {
|
||||
access |= A::SHADER_WRITE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user