semantic.instance-id.vs.hlsl 562 B

12345678910111213141516
  1. // Run: %dxc -T vs_6_0 -E main
  2. // CHECK: OpEntryPoint Vertex %main "main"
  3. // CHECK-SAME: %gl_InstanceIndex
  4. // CHECK-SAME: %out_var_SV_InstanceID
  5. // CHECK: OpDecorate %gl_InstanceIndex BuiltIn InstanceIndex
  6. // CHECK: OpDecorate %out_var_SV_InstanceID Location 0
  7. // CHECK: %gl_InstanceIndex = OpVariable %_ptr_Input_int Input
  8. // CHECK: %out_var_SV_InstanceID = OpVariable %_ptr_Output_int Output
  9. int main(int input: SV_InstanceID) : SV_InstanceID {
  10. return input;
  11. }