• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1static int gl_InstanceIndex;
2static int id;
3
4struct SPIRV_Cross_Input
5{
6    uint gl_InstanceIndex : SV_InstanceID;
7};
8
9struct SPIRV_Cross_Output
10{
11    int id : TEXCOORD1;
12};
13
14int fn_i()
15{
16    return gl_InstanceIndex;
17}
18
19void vert_main()
20{
21    id = fn_i();
22}
23
24SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
25{
26    gl_InstanceIndex = int(stage_input.gl_InstanceIndex);
27    vert_main();
28    SPIRV_Cross_Output stage_output;
29    stage_output.id = id;
30    return stage_output;
31}
32