When I try to compile two HLSL files included in my project, the compilation fails with an error:
Error error X4502: invalid vs_2_0 input semantic 'INSTANCE'
However, I notice it's trying to use shader model 2.0; when I'm trying to use 5.0:
Why is the shader compiler trying to use the 2.0 model when I've told VS to use 5.0? Or have I misunderstood?
SV_InstanceID
. \$\endgroup\$INSTANCE
semantic. IF you want a user-defined semantic name, then you need to use a different string that isn't a known legacy semantic name. \$\endgroup\$