| 1 |
static float4 gl_Position; |
| 2 |
static int gl_VertexIndex; |
| 3 |
static int gl_InstanceIndex; |
| 4 |
struct SPIRV_Cross_Input |
| 5 |
{ |
| 6 |
uint gl_VertexIndex : SV_VertexID; |
| 7 |
uint gl_InstanceIndex : SV_InstanceID; |
| 8 |
}; |
| 9 |
|
| 10 |
struct SPIRV_Cross_Output |
| 11 |
{ |
| 12 |
float4 gl_Position : SV_Position; |
| 13 |
}; |
| 14 |
|
| 15 |
void vert_main() |
| 16 |
{ |
| 17 |
gl_Position = float(uint(gl_VertexIndex) + uint(gl_InstanceIndex)).xxxx; |
| 18 |
} |
| 19 |
|
| 20 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 21 |
{ |
| 22 |
gl_VertexIndex = int(stage_input.gl_VertexIndex); |
| 23 |
gl_InstanceIndex = int(stage_input.gl_InstanceIndex); |
| 24 |
vert_main(); |
| 25 |
SPIRV_Cross_Output stage_output; |
| 26 |
stage_output.gl_Position = gl_Position; |
| 27 |
return stage_output; |
| 28 |
} |