Files
mandy/tests/semantic/fixtures/cube_load_d16.asm
Vonsek ca570a4d2f fix(shader): select the typed array view for cube loads
The runtime binds cubes as 2D arrays. Fetching every cube as float gives integer textures a mismatched sampled type and clears a live upper half for odd D16 component counts.
2026-11-22 19:41:07 +01:00

11 lines
344 B
NASM

; Float R=0.5 at (1,2) on layer 9. With a one-component D16 load the
; exported register must be 0x3f803800 (old upper half, binary16 red).
v_mov_b32 v0, 0x3f800000
v_mov_b32 v4, 1
v_mov_b32 v5, 2
v_mov_b32 v6, 9
image_load v0, v[4:6], s[0:7] dmask:0x1 dim:SQ_RSRC_IMG_CUBE unorm d16
s_waitcnt vmcnt(0)
exp mrt0 v0, v0, v0, v0 done vm
s_endpgm