blob: c8ad18588930846f6ef57aba5d04c004ee9b6fad [file] [log] [blame]
static int gl_VertexIndex;
static int id;
struct SPIRV_Cross_Input
{
uint gl_VertexIndex : SV_VertexID;
};
struct SPIRV_Cross_Output
{
int id : TEXCOORD1;
};
void vert_main()
{
id = gl_VertexIndex;
}
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
gl_VertexIndex = int(stage_input.gl_VertexIndex);
vert_main();
SPIRV_Cross_Output stage_output;
stage_output.id = id;
return stage_output;
}