Translate a two-texture gfx1013 pixel shader and verify the blend on D3D12 #100

Manually merged
github merged 5 commits from gh-pr/100/head into gh-pr/100/base 2026-11-26 21:26:57 +00:00
Owner

@⁠descent81 on GitHub · 2026-11-21 15:58 UTC · original
descent81:contribution/dual-texture-pixel → main · +117 −13 · 6 files · 5 commits · merged 2026-11-21 16:38 UTC

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.

**@⁠descent81** on GitHub · 2026-11-21 15:58 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/100) `descent81:contribution/dual-texture-pixel` → `main` · +117 −13 · 6 files · 5 commits · merged 2026-11-21 16:38 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:26:56 +00:00
github manually merged commit f5e63dde80 into gh-pr/100/base 2026-11-26 21:26:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.