mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 00:41:07 +01:00
[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:
1 parent
6303af225f
commit
2f516c0932
43 files changed
+652
-435
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user