wrap_user_comp_shader_with_plan

Function wrap_user_comp_shader_with_plan 

Source
pub fn wrap_user_comp_shader_with_plan(
    translated_body: &str,
    plan: &TextureBindingPlan,
) -> String
Expand description

Same as wrap_user_comp_shader, but emits per-preset texsize_<NAME> constants from the supplied TextureBindingPlan. The user-texture bindings themselves are always declared (so the bind-group layout the comp pipeline owns stays stable); only the WGSL identifiers the user body can reference (texsize_clouds, …) change per preset.