SPIRV-Cross/reference/shaders/legacy/fragment/struct-varying.legacy.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

23 lines
417 B
GLSL

#version 100
precision mediump float;
precision highp int;
struct Inputs
{
highp vec4 a;
highp vec2 b;
};
varying highp vec4 Inputs_a;
varying highp vec2 Inputs_b;
void main()
{
Inputs v0 = Inputs(Inputs_a, Inputs_b);
Inputs v1 = Inputs(Inputs_a, Inputs_b);
highp vec4 a = Inputs_a;
highp vec4 b = Inputs_b.xxyy;
gl_FragData[0] = ((((v0.a + v0.b.xxyy) + v1.a) + v1.b.yyxx) + a) + b;
}