decl_target_float_kind

Function decl_target_float_kind 

Source
pub(super) fn decl_target_float_kind(t: &TypeRef) -> WgslType
Expand description

Maps an HLSL declaration’s textual type to the WGSL type the downstream replace_types pass will produce — for the purpose of deciding whether the RHS should be bool-coerced. Treats int, half, double and their vector siblings as float-kind, mirroring the substitution rules in crate::replace_types.