| 1 |
struct Foo |
| 2 |
{ |
| 3 |
row_major float3x3 m[2]; |
| 4 |
float v; |
| 5 |
}; |
| 6 |
|
| 7 |
struct Bar |
| 8 |
{ |
| 9 |
row_major float3x3 m; |
| 10 |
float v; |
| 11 |
}; |
| 12 |
|
| 13 |
cbuffer FooUBO : register(b0) |
| 14 |
{ |
| 15 |
Foo _6_foo : packoffset(c0); |
| 16 |
}; |
| 17 |
|
| 18 |
cbuffer BarUBO : register(b1) |
| 19 |
{ |
| 20 |
Bar _9_bar : packoffset(c0); |
| 21 |
}; |
| 22 |
|
| 23 |
|
| 24 |
static float4 FragColor; |
| 25 |
|
| 26 |
struct SPIRV_Cross_Output |
| 27 |
{ |
| 28 |
float4 FragColor : SV_Target0; |
| 29 |
}; |
| 30 |
|
| 31 |
void frag_main() |
| 32 |
{ |
| 33 |
FragColor = (_6_foo.v + _9_bar.v).xxxx; |
| 34 |
} |
| 35 |
|
| 36 |
SPIRV_Cross_Output main() |
| 37 |
{ |
| 38 |
frag_main(); |
| 39 |
SPIRV_Cross_Output stage_output; |
| 40 |
stage_output.FragColor = FragColor; |
| 41 |
return stage_output; |
| 42 |
} |