Module texture_uv

Module texture_uv 

Source
Expand description

Pass: texture-sampling UV coercion (tex2D / GetPixel / GetBlur*).

FunctionsΒ§

coerce_texture_uv_args πŸ”’
For every tex2D(sampler, expr) call where expr is inferred as a vec3 or vec4 (not vec2), wrap expr in parens and append .xy. HLSL silently truncates non-vec2 UV args; WGSL rejects them. The regex pipeline doesn’t reach into call args at this depth.
walk_block_for_uv πŸ”’
walk_expr_for_uv πŸ”’
walk_stmt_for_uv πŸ”’