mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
Merge #598
598: Enable READ access for texture storage r=kvark a=kvark This is a short-term workaround until we properly implement #597 Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
This commit is contained in:
commit
f4550cc4e3
1 file changed
+1
-1
@@ -540,7 +540,7 @@ pub fn map_texture_state(
|
||||
access |= A::SHADER_READ;
|
||||
}
|
||||
if usage.contains(W::STORAGE) {
|
||||
access |= A::SHADER_WRITE;
|
||||
access |= A::SHADER_READ | A::SHADER_WRITE;
|
||||
}
|
||||
if usage.contains(W::OUTPUT_ATTACHMENT) {
|
||||
//TODO: read-only attachments
|
||||
|
||||
Reference in new issue
Block a user