SPIRV-Cross/reference/shaders-no-opt/vert/io-blocks.force-flattened-io.vert
Hans-Kristian Arntzen 57c93d44ac GLSL: Add option to force flattening IO blocks.
It is not always desirable to use actual blocks.
A prime example in the case where EXT_shader_io_blocks is not supported
on the target implementation.
2020-07-28 15:16:06 +02:00

26 lines
417 B
GLSL

#version 450
struct Foo
{
vec4 bar[2];
vec4 baz[2];
};
out vec4 _14_foo_bar[2];
out vec4 _14_foo_baz[2];
out vec4 _14_foo2_bar[2];
out vec4 _14_foo2_baz[2];
out vec4 foo3_bar[2];
out vec4 foo3_baz[2];
void main()
{
_14_foo_bar[0] = vec4(1.0);
_14_foo_baz[1] = vec4(2.0);
_14_foo2_bar[0] = vec4(3.0);
_14_foo2_baz[1] = vec4(4.0);
foo3_bar[0] = vec4(5.0);
foo3_baz[1] = vec4(6.0);
}