pub fn build_sprite_uniform(
x: f32,
y: f32,
sx: f32,
sy: f32,
rot: f32,
rgba: [f32; 4],
texture_w: u32,
texture_h: u32,
render_w: u32,
render_h: u32,
) -> SpriteUniformExpand description
Build a SpriteUniform from raw engine-side numbers + texture
dimensions + render aspect ratio. Pulled out so the renderer’s
update_sprites step can produce a single contiguous list of
uniforms for upload + the matching draw-cmd list without
recomputing aspect ratios per call.