[wgsl] Storage buffer/texture access (#1142)

* Resurrect texture_storage_* tests
* Test parsing of `var<storage,write>`
* Default storage textures to READ
* Restore default features
* Fix glsl/hlsl/msl/spv front and back ends
* Add missing test outputs
* All-around fixes for the storage access

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
This commit is contained in:
pyrotechnickandDzmitry Malyshau authored and GitHub committed 2021-07-28 01:47:18 -04:00
1 parent 6303af225f
commit 2f516c0932
43 files changed
+652 -435

No files matched your search

+7 -5
View File
@@ -475,11 +475,13 @@ impl super::Validator {
}
}
match class {
crate::ImageClass::Storage(format) => crate::TypeInner::Vector {
kind: format.into(),
size: crate::VectorSize::Quad,
width: 4,
},
crate::ImageClass::Storage { format, .. } => {
crate::TypeInner::Vector {
kind: format.into(),
size: crate::VectorSize::Quad,
width: 4,
}
}
_ => {
return Err(FunctionError::InvalidImageStore(
ExpressionError::InvalidImageClass(class),