Skip to content

Commit

Permalink
[wgsl-in] Parse function storage class
Browse files Browse the repository at this point in the history
  • Loading branch information
JCapucho authored and kvark committed Aug 17, 2021
1 parent b11f094 commit ba92640
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/front/wgsl/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
}
Expand Down

0 comments on commit ba92640

Please sign in to comment.