4 * require_extensions: GL_ARB_shading_language_420pack
7 * From the GL_ARB_shading_language_420pack spec:
9 * "When multiple qualifiers are present in a declaration, they may appear in
10 * any order, but they must all appear before the type. The layout qualifier
11 * is the only qualifier that can appear more than once. Further, a
12 * declaration can have at most one storage qualifier, at most one auxiliary
13 * storage qualifier, and at most one interpolation qualifier. Multiple
14 * memory qualifiers can be used. Any violation of these rules will cause a
15 * compile-time error."
17 * Test that interpolation, auxiliary, and storage qualifiers may be ordered
21 #extension GL_ARB_shading_language_420pack: enable
23 // storage interpolation
26 // interpolation storage
30 out centroid float s_a;
33 centroid out float a_s;
35 // Cannot test auxiliary interpolation without a storage qualifier.
37 // auxiliary interpolation storage
38 centroid flat out float a_i_s;
40 // auxiliary storage interpolation
41 centroid out flat float a_s_i;
43 // interpolation auxiliary storage
44 flat centroid out float i_a_s;
46 // interpolation storage auxiliary
47 flat out centroid float i_s_a;
49 // storage interpolation auxiliary
50 out flat centroid float s_i_a;
52 // storage auxiliary interpolation
53 out centroid flat float s_a_i;