Translate a two-texture gfx1013 pixel shader and verify the blend on D3D12 #100
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!100
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/100/head"
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?
@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 UTCExtend 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.