| 1 |
struct Foo |
| 2 |
{ |
| 3 |
float3 a; |
| 4 |
float3 b; |
| 5 |
float3 c; |
| 6 |
}; |
| 7 |
|
| 8 |
static const Foo _71 = { 1.0f.xxx, 1.0f.xxx, 1.0f.xxx }; |
| 9 |
|
| 10 |
static float4 gl_Position; |
| 11 |
static float4 Input2; |
| 12 |
static float4 Input4; |
| 13 |
static float4 Input0; |
| 14 |
static float vLocation0; |
| 15 |
static float vLocation1; |
| 16 |
static float vLocation2[2]; |
| 17 |
static Foo vLocation4; |
| 18 |
static float vLocation9; |
| 19 |
|
| 20 |
struct VertexOut |
| 21 |
{ |
| 22 |
float3 color : TEXCOORD7; |
| 23 |
float3 foo : TEXCOORD8; |
| 24 |
}; |
| 25 |
|
| 26 |
static VertexOut vout; |
| 27 |
|
| 28 |
struct SPIRV_Cross_Input |
| 29 |
{ |
| 30 |
float4 Input0 : TEXCOORD0; |
| 31 |
float4 Input2 : TEXCOORD2; |
| 32 |
float4 Input4 : TEXCOORD4; |
| 33 |
}; |
| 34 |
|
| 35 |
struct SPIRV_Cross_Output |
| 36 |
{ |
| 37 |
float vLocation0 : TEXCOORD0; |
| 38 |
float vLocation1 : TEXCOORD1; |
| 39 |
float vLocation2[2] : TEXCOORD2; |
| 40 |
Foo vLocation4 : TEXCOORD4; |
| 41 |
float vLocation9 : TEXCOORD9; |
| 42 |
float4 gl_Position : SV_Position; |
| 43 |
}; |
| 44 |
|
| 45 |
void vert_main() |
| 46 |
{ |
| 47 |
gl_Position = ((1.0f.xxxx + Input2) + Input4) + Input0; |
| 48 |
vLocation0 = 0.0f; |
| 49 |
vLocation1 = 1.0f; |
| 50 |
vLocation2[0] = 2.0f; |
| 51 |
vLocation2[1] = 2.0f; |
| 52 |
vLocation4 = _71; |
| 53 |
vLocation9 = 9.0f; |
| 54 |
vout.color = 2.0f.xxx; |
| 55 |
vout.foo = 4.0f.xxx; |
| 56 |
} |
| 57 |
|
| 58 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input, out VertexOut stage_outputvout) |
| 59 |
{ |
| 60 |
Input2 = stage_input.Input2; |
| 61 |
Input4 = stage_input.Input4; |
| 62 |
Input0 = stage_input.Input0; |
| 63 |
vert_main(); |
| 64 |
stage_outputvout = vout; |
| 65 |
SPIRV_Cross_Output stage_output; |
| 66 |
stage_output.gl_Position = gl_Position; |
| 67 |
stage_output.vLocation0 = vLocation0; |
| 68 |
stage_output.vLocation1 = vLocation1; |
| 69 |
stage_output.vLocation2 = vLocation2; |
| 70 |
stage_output.vLocation4 = vLocation4; |
| 71 |
stage_output.vLocation9 = vLocation9; |
| 72 |
return stage_output; |
| 73 |
} |