mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-27 01:03:41 +00:00
[wgsl-in] Parse function storage class
This commit is contained in:
parent
b11f094287
commit
ba92640482
@ -9,6 +9,7 @@ pub fn map_storage_class(word: &str, span: Span) -> Result<crate::StorageClass,
|
||||
access: crate::StorageAccess::default(),
|
||||
}),
|
||||
"push_constant" => Ok(crate::StorageClass::PushConstant),
|
||||
"function" => Ok(crate::StorageClass::Function),
|
||||
_ => Err(Error::UnknownStorageClass(span)),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user