Merge pull request #2913 from greg-lunarg/i2905
[platform/upstream/glslang.git] / Test / glspv.frag
1 #version 450\r
2 \r
3 #ifdef GL_SPIRV\r
4 #error GL_SPIRV is set ( correct, not an error )\r
5 #if GL_SPIRV == 100\r
6 #error GL_SPIR is 100\r
7 #endif\r
8 #endif\r
9 \r
10 void main()\r
11 {\r
12 }\r
13 \r
14 uniform float f;                           // ERROR, no location\r
15 layout(location = 2) uniform float g;\r
16 uniform sampler2D s1;                      // ERROR, no binding\r
17 layout(location = 3) uniform sampler2D s2; // ERROR, no binding\r
18 \r
19 void noise()\r
20 {\r
21     noise1(vec4(1));\r
22     noise2(4.0);\r
23     noise3(vec2(3));\r
24     noise4(1);\r
25 }\r
26 \r
27 uniform atomic_uint atomic;                // ERROR, no binding\r
28 layout(input_attachment_index = 1) uniform subpassInput sub; // ERROR, no inputs\r