DirectXShaderCompiler
DirectXShaderCompiler copied to clipboard
Declare SV_VertexID as float only get validation error
Description
SV_VertexID should be a uint. But declare it as float only get validation error. Not compile error.
Steps to Reproduce
compile with -Tvs_6_0
float4 main(float V : SV_VertextID) : SV_Position { return V; }
https://godbolt.org/z/ahe1fjsEM
Actual Behavior
It should be a compile error instead of validation error.
Environment
- DXC version 1.7.2207
- Host Operating System Windows