SPIRV-Cross/reference/opt/shaders-hlsl/vert/struct-composite-decl.vert
Hans-Kristian Arntzen 06041985d0 Fix HLSL regression with struct declaration.
It actually worked surprisingly. Fix it properly.
2018-01-23 16:36:20 +01:00

45 lines
684 B
GLSL

struct VOut
{
float4 a;
float4 b;
float4 c;
float4 d;
};
static VOut vout;
static float4 a;
static float4 b;
static float4 c;
static float4 d;
struct SPIRV_Cross_Input
{
float4 a : TEXCOORD0;
float4 b : TEXCOORD1;
float4 c : TEXCOORD2;
float4 d : TEXCOORD3;
};
struct SPIRV_Cross_Output
{
VOut vout : TEXCOORD0;
};
void vert_main()
{
VOut _26 = { a, b, c, d };
vout = _26;
}
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
a = stage_input.a;
b = stage_input.b;
c = stage_input.c;
d = stage_input.d;
vert_main();
SPIRV_Cross_Output stage_output;
stage_output.vout = vout;
return stage_output;
}