From 09a641bdf4b0295b4a14a2b13d64c2eda3ac4fef Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Wed, 9 Apr 2025 20:56:22 -0400 Subject: [PATCH] Fix `include_spirv_raw` macro (#7503) --- wgpu/src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu/src/macros.rs b/wgpu/src/macros.rs index 1afb099da..87eb6f2d8 100644 --- a/wgpu/src/macros.rs +++ b/wgpu/src/macros.rs @@ -106,12 +106,12 @@ macro_rules! include_spirv_raw { ($($token:tt)*) => { { //log::info!("including '{}'", $($token)*); - $crate::ShaderModuleDescriptorPassthrough::SpirV { + $crate::ShaderModuleDescriptorPassthrough::SpirV( $crate::ShaderModuleDescriptorSpirV { label: $crate::__macro_helpers::Some($($token)*), source: $crate::util::make_spirv_raw($crate::__macro_helpers::include_bytes!($($token)*)), } - } + ) } }; }