SPIRV-Cross/reference/shaders-hlsl-no-opt/asm/frag/struct-packing-last-element-array-matrix-rule.invalid.asm.frag

43 lines
562 B
GLSL
Raw Normal View History

struct Foo
{
row_major float3x3 m[2];
float v;
};
struct Bar
{
row_major float3x3 m;
float v;
};
cbuffer FooUBO : register(b0)
{
Foo _6_foo : packoffset(c0);
};
cbuffer BarUBO : register(b1)
{
Bar _9_bar : packoffset(c0);
};
static float4 FragColor;
struct SPIRV_Cross_Output
{
float4 FragColor : SV_Target0;
};
void frag_main()
{
FragColor = (_6_foo.v + _9_bar.v).xxxx;
}
SPIRV_Cross_Output main()
{
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.FragColor = FragColor;
return stage_output;
}