SPIRV-Cross/reference/shaders-no-opt/asm/vert/block-struct-initializer.asm.vert
Hans-Kristian Arntzen 175381fe08 GLSL: Handle some extreme edge cases in Output variable initialization.
Deal with patch blocks, arrays of patch blocks, arrays of blocks, etc.
2021-01-05 12:06:36 +01:00

25 lines
260 B
GLSL

#version 450
struct Foo
{
float c;
float d;
};
layout(location = 0) out Vert
{
float a;
float b;
} _3;
layout(location = 2) out Foo foo;
const Foo _4_init = Foo(0.0, 0.0);
void main()
{
_3.a = 0.0;
_3.b = 0.0;
foo = _4_init;
}