mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
dfbe7fb6bf
SV_PrimitiveID is only valid as a pixel shader input if there's either no geometry shader, or the geometry shader emits SV_PrimitiveID. With D3D11, the debug layer will complain but rendering will proceed. With D3D12, the PSO fails to compile. For both APIs, pixel shader debugging now checks whether this is true, and disables its usage if it isn't. Added tests for various valid scenarios with SV_PrimitiveID.