[wgsl-in] Support workgroup storage class

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-05-28 22:18:51 -04:00
1 parent 14908e5126
commit 0244853d4c
1 file changed
+1
+1
View File
@@ -3,6 +3,7 @@ use super::Error;
pub fn map_storage_class(word: &str) -> Result<crate::StorageClass, Error<'_>> {
match word {
"private" => Ok(crate::StorageClass::Private),
"workgroup" => Ok(crate::StorageClass::WorkGroup),
"uniform" => Ok(crate::StorageClass::Uniform),
"storage" => Ok(crate::StorageClass::Storage),
"push_constant" => Ok(crate::StorageClass::PushConstant),