2021-06-28 12:24:29 +00:00
|
|
|
struct Vert
|
|
|
|
{
|
|
|
|
float a;
|
|
|
|
float b;
|
|
|
|
};
|
|
|
|
|
2021-01-04 10:16:58 +00:00
|
|
|
struct Foo
|
|
|
|
{
|
|
|
|
float c;
|
|
|
|
float d;
|
|
|
|
};
|
|
|
|
|
2021-06-28 12:24:29 +00:00
|
|
|
static const Vert _11 = { 0.0f, 0.0f };
|
2021-01-04 10:16:58 +00:00
|
|
|
static const Foo _13 = { 0.0f, 0.0f };
|
|
|
|
|
|
|
|
static Vert _3 = { 0.0f, 0.0f };
|
2021-06-28 12:24:29 +00:00
|
|
|
static Foo foo = _13;
|
2021-01-04 10:16:58 +00:00
|
|
|
|
|
|
|
struct SPIRV_Cross_Output
|
|
|
|
{
|
2021-06-28 12:24:29 +00:00
|
|
|
float Vert_a : TEXCOORD0;
|
|
|
|
float Vert_b : TEXCOORD1;
|
2021-01-04 10:16:58 +00:00
|
|
|
Foo foo : TEXCOORD2;
|
|
|
|
};
|
|
|
|
|
|
|
|
void vert_main()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-06-28 12:24:29 +00:00
|
|
|
SPIRV_Cross_Output main()
|
2021-01-04 10:16:58 +00:00
|
|
|
{
|
|
|
|
vert_main();
|
|
|
|
SPIRV_Cross_Output stage_output;
|
2021-06-28 12:24:29 +00:00
|
|
|
stage_output.Vert_a = _3.a;
|
|
|
|
stage_output.Vert_b = _3.b;
|
2021-01-04 10:16:58 +00:00
|
|
|
stage_output.foo = foo;
|
|
|
|
return stage_output;
|
|
|
|
}
|