Translate a two-texture gfx1013 pixel shader and verify the blend on D3D12 #99
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/100"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by descent81 on 2026-11-21T15:58:05Z.
Extend the straight-line gfx1013 pixel translator with an explicit second texture descriptor offset mapped to t1. The original fixture samples two textures with one point sampler and combines a horizontal red ramp (75%) with a vertical blue ramp (25%).
The LLVM binary test assembles the fixture, extracts its native instructions from a synthetic container, disassembles them, and checks that lowering produces the same HLSL used by the rendering test.
Local end-to-end verification used LLVM 15.0.7 to assemble 31 instructions (192 bytes). DXC compiled the HLSL produced from the disassembled bytes. On both WARP and an NVIDIA GeForce RTX 4060 (driver 32.0.16.1088), all 16,384 RGBA channels across 4,096 pixels matched the independent CPU reference exactly. Both rejected swapped texture bindings. D3D12 reported zero debug errors and warnings. Both readbacks had SHA-256
4ecb2ea56e21fde443a2d466c0a3c97ec0478e283a3d62f57d316386678d8f38.The existing single-texture and BC7 rendering tests also passed on both backends. All dual-texture inputs are original synthetic shaders; compatibility with game shaders remains untested.