X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fspecialized_array_in_struct.glsl;h=f82bd74eb4a5af4f8794845a29ab26eae08348f3;hb=2e9d0beaafa8220d8a917749c8a12beaf4718729;hp=4a6d9ab68773158540b2f1dd38162f9631611f04;hpb=23779cd03a8b1f6fdc3b2e4d8880170d3fa6146f;p=libs%2Fgl.git diff --git a/tests/glsl/specialized_array_in_struct.glsl b/tests/glsl/specialized_array_in_struct.glsl index 4a6d9ab6..f82bd74e 100644 --- a/tests/glsl/specialized_array_in_struct.glsl +++ b/tests/glsl/specialized_array_in_struct.glsl @@ -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: +:8: Reference to specialization constant 'max_colors' in a fixed constant expression +:8: Reference to specialization constant 'max_colors' in a fixed constant expression */