mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
The previous commit moved PrimitiveIndex to the top of the BuiltIn enum to fix FXC ordering (SV_PrimitiveID must appear before other SVs). However, since BuiltIn derives Ord, this changed the global sort order, breaking DX12 inter-stage variable matching in CTS tests. Fix: Restore PrimitiveIndex to its original enum position and handle the FXC ordering requirement locally in the HLSL backend's InterfaceKey by giving PrimitiveIndex its own sort key between Location and BuiltIn. Co-authored-by: cwfitzgerald <7861353+cwfitzgerald@users.noreply.github.com>