hlsl_type_to_wgsl

Function hlsl_type_to_wgsl 

Source
pub(crate) fn hlsl_type_to_wgsl(name: &str) -> Option<&'static str>
Expand description

Map an HLSL type name (float, float2, int3, float3x3, …) to its WGSL equivalent (f32, vec2<f32>, vec3<f32>, mat3x3<f32>, …). Returns None for types the hoist pass shouldn’t touch (e.g. user struct names, samplers — these don’t show up as GlobalVar anyway, but be defensive).