fix the spelling in whole piglit
[piglit.git] / tests / vulkan / shaders / fs-large-local-array-vec4.vk_shader_test
blob8804b5ed8549b78a21491fe05ac076b257bbe94d
1 # Tests a large vec4 local array.
2 # Vulkan equivalent to tests/spec/glsl-1.30/execution/fs-large-local-array-vec4.shader_test
4 [require]
6 [vertex shader passthrough]
8 [fragment shader]
9 #version 450
11 layout (binding = 5) uniform block {
12        uint i;
15 layout (location = 0) out vec4 out_color;
17 void main()
19         vec4 A[130];
20         A[20].g = 0;
21         A[i].g = 37;
22         A[i].r = 1;
23         out_color.rba = vec3(0.0, 0.0, 1.0);
24         out_color.g = float(A[20].g == 37);
27 [test]
28 clear color 1.0 0.0 0.0 1.0
29 clear
31 ubo 5 subdata uint 0 19
32 draw rect -1 -1 2 2
33 probe all rgba 0.0 0.0 0.0 1.0
35 clear
36 ubo 5 subdata uint 0 20
37 draw rect -1 -1 2 2
38 probe all rgba 0.0 1.0 0.0 1.0