Translate mesh PARAM0 exports and verify interpolated vertex colors end to end #540
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/546"
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-22T10:30:44Z.
A position export determines where a triangle lands. This adds a bounded four-component PARAM0 export to the specialized mesh translator so a translated pixel shader can consume data from its vertices. The source-built fixture fetches indexed positions and a second stream of runtime RGB values from the same SRV, exports the attribute, interpolates attr0 and packs MRT0. The same compiled stages draw two different palettes.
Why the result distinguishes the stages
The triangle extends beyond the viewport. Its clip positions and vertex amplitudes yield two exact ramps at the 32×32 pixel centers. A CPU oracle evaluates those ramps directly and compares every RGBA byte. Swapping the uploaded red and green vertex values transposes the ramps without moving any vertex. Keeping the old reference produces exactly 992 pixel mismatches; the other 32 centers have equal red and green. The primitive and position trace still matches.
Scope and verification
bcfd456. Shares the optional pixel-source argument used by #544 and tests a separate interface: runtime data crosses the rasterizer from translated mesh to translated pixel stage.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T11:51:45Z.
Independent reproduction requested in #218. I built the submitted head
94bd503ef7d073dcdebae97b4f00c88c8987303eon Windows 11 build 26300.9974 with x64 MSVC 19.52.37029.0. The RTX 4070 (32.0.16.2124) and WARP (10.0.26100.9818) both ran with the D3D12 debug layer enabled. All fourmesh_attribute_draw_*andmesh_indexed_draw_*tests passed. Both uploaded palettes matched all 1,024 pixels with trace on and off. The stale-palette reference failed at exactly 992 pixels on each adapter, and the geometry trace still matched.