Fix include_spirv_raw macro (#7503)

This commit is contained in:
Christian Legnitto 2025-04-09 20:56:22 -04:00 committed by GitHub
parent a0dbe5ebc6
commit 09a641bdf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,12 +106,12 @@ macro_rules! include_spirv_raw {
($($token:tt)*) => { ($($token:tt)*) => {
{ {
//log::info!("including '{}'", $($token)*); //log::info!("including '{}'", $($token)*);
$crate::ShaderModuleDescriptorPassthrough::SpirV { $crate::ShaderModuleDescriptorPassthrough::SpirV(
$crate::ShaderModuleDescriptorSpirV { $crate::ShaderModuleDescriptorSpirV {
label: $crate::__macro_helpers::Some($($token)*), label: $crate::__macro_helpers::Some($($token)*),
source: $crate::util::make_spirv_raw($crate::__macro_helpers::include_bytes!($($token)*)), source: $crate::util::make_spirv_raw($crate::__macro_helpers::include_bytes!($($token)*)),
} }
} )
} }
}; };
} }