SPIRV-Cross/reference/shaders/desktop-only/frag/in-block-qualifiers.frag
Hans-Kristian Arntzen 036b9b73f5 Emit storage qualifier in the correct place.
Need to emit qualifiers in a specific order for legacy GLSL.

<interpolation> <storage> <precision> <type>.
2017-02-24 09:56:17 +01:00

22 lines
529 B
GLSL

#version 450
layout(location = 0) out vec4 FragColor;
in VertexData
{
layout(location = 0) flat float f;
layout(location = 1) centroid vec4 g;
layout(location = 2) flat int h;
layout(location = 3) float i;
} vin;
layout(location = 4) flat in float f;
layout(location = 5) centroid in vec4 g;
layout(location = 6) flat in int h;
layout(location = 7) sample in float i;
void main()
{
FragColor = ((((((vec4(vin.f) + vin.g) + vec4(float(vin.h))) + vec4(vin.i)) + vec4(f)) + g) + vec4(float(h))) + vec4(i);
}