DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

Declare SV_VertexID as float only get validation error

Open python3kgae opened this issue 2 years ago • 0 comments

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

python3kgae avatar Sep 21 '23 21:09 python3kgae