[wgsl-in] Parse function storage class

This commit is contained in:
João Capucho 2021-08-16 22:02:03 +01:00 committed by Dzmitry Malyshau
parent b11f094287
commit ba92640482

View File

@ -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)),
}
}