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:
bors[bot]andDzmitry Malyshau authored and GitHub committed 2020-04-18 17:30:21 +00:00
commit f4550cc4e3
1 file changed
+1 -1
+1 -1
View File
@@ -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