mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
Change SpirV macro from expr to tt
As suggested in the pull request.
This commit is contained in:
1 parent
b0b577c9a3
commit
3984737743
1 file changed
+2
-2
+2
-2
@@ -143,7 +143,7 @@ fn test_vertex_attr_array() {
|
||||
/// It ensure the word alignment as well as the magic number.
|
||||
#[macro_export]
|
||||
macro_rules! include_spirv {
|
||||
($path:expr) => {
|
||||
$crate::util::make_spirv(&$crate::util::WordAligned(*include_bytes!($path)).0)
|
||||
($($token:tt)*) => {
|
||||
$crate::util::make_spirv(&$crate::util::WordAligned(*include_bytes!($($token)*)).0)
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user