]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/specialized_array_in_struct.glsl
Disallow specialization constants in certain contexts
[libs/gl.git] / tests / glsl / specialized_array_in_struct.glsl
index 4a6d9ab68773158540b2f1dd38162f9631611f04..f82bd74eb4a5af4f8794845a29ab26eae08348f3 100644 (file)
@@ -24,27 +24,7 @@ void main()
 
 // Compile mode: module
 
-/* Expected output: vertex
-layout(location=0) in vec4 position;
-void main()
-{
-       gl_Position = position;
-}
-*/
-
-/* Expected output: fragment
-layout(constant_id=953017667) const int max_colors = 2;
-struct ColorInfo
-{
-       vec4 color;
-};
-layout(binding=23) uniform Colors
-{
-       ColorInfo colors[max_colors];
-};
-layout(location=0) out vec4 frag_color;
-void main()
-{
-       frag_color = colors[0].color;
-}
+/* Expected error:
+<test>:8: Reference to specialization constant 'max_colors' in a fixed constant expression
+<test>:8: Reference to specialization constant 'max_colors' in a fixed constant expression
 */