SPIRV-Cross/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

27 lines
326 B
GLSL

#version 310 es
layout(location = 0) in vec4 a;
layout(location = 1) in vec4 b;
layout(location = 2) in vec4 c;
layout(location = 3) in vec4 d;
struct VOut
{
vec4 a;
vec4 b;
vec4 c;
vec4 d;
};
layout(location = 0) out VOut vout;
void emit_result(VOut v)
{
vout = v;
}
void main()
{
emit_result(VOut(a, b, c, d));
}