SPIRV-Cross/reference/shaders/asm/frag/storage-class-output-initializer.asm.frag
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

14 lines
271 B
GLSL

#version 450
layout(location = 0) out vec4 FragColors[2];
layout(location = 2) out vec4 FragColor;
const vec4 _3_init[2] = vec4[](vec4(1.0, 2.0, 3.0, 4.0), vec4(10.0));
const vec4 _4_init = vec4(5.0);
void main()
{
FragColors = _3_init;
FragColor = _4_init;
}