OLD | NEW |
| (Empty) |
1 This test ensures WebGL implementations handle uniform arrays correctly. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 check float | |
8 PASS 1 uniform found | |
9 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 | |
10 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program | |
11 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform1fv | |
12 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform1fv | |
13 PASS getError was expected value: NO_ERROR : can call gl.getUniform | |
14 PASS gl.getUniform returns the correct type. | |
15 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation | |
16 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform | |
17 PASS value put in (16) matches value pulled out (16) | |
18 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation | |
19 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform | |
20 PASS value put in (15) matches value pulled out (15) | |
21 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation | |
22 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform | |
23 PASS value put in (14) matches value pulled out (14) | |
24 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails | |
25 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) | |
26 | |
27 check vec2 | |
28 PASS 1 uniform found | |
29 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 | |
30 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program | |
31 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform2fv | |
32 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform2fv | |
33 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform2fv | |
34 PASS getError was expected value: NO_ERROR : can call gl.getUniform | |
35 PASS gl.getUniform returns the correct type. | |
36 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation | |
37 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform | |
38 PASS value put in ([16, 15]) matches value pulled out ([16, 15]) | |
39 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation | |
40 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform | |
41 PASS value put in ([14, 13]) matches value pulled out ([14, 13]) | |
42 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation | |
43 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform | |
44 PASS value put in ([12, 11]) matches value pulled out ([12, 11]) | |
45 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails | |
46 PASS passing non-array to glUniform*fv should throw TypeError | |
47 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) | |
48 | |
49 check vec3 | |
50 PASS 1 uniform found | |
51 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 | |
52 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program | |
53 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform3fv | |
54 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform3fv | |
55 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform3fv | |
56 PASS getError was expected value: NO_ERROR : can call gl.getUniform | |
57 PASS gl.getUniform returns the correct type. | |
58 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation | |
59 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform | |
60 PASS value put in ([16, 15, 14]) matches value pulled out ([16, 15, 14]) | |
61 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation | |
62 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform | |
63 PASS value put in ([13, 12, 11]) matches value pulled out ([13, 12, 11]) | |
64 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation | |
65 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform | |
66 PASS value put in ([10, 9, 8]) matches value pulled out ([10, 9, 8]) | |
67 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails | |
68 PASS passing non-array to glUniform*fv should throw TypeError | |
69 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) | |
70 | |
71 check vec4 | |
72 PASS 1 uniform found | |
73 PASS uniform name is 'color[0]' not 'color' as per OpenGL ES 2.0.24 section 2.10 | |
74 PASS getError was expected value: INVALID_OPERATION : should fail if there is no
current program | |
75 PASS getError was expected value: INVALID_VALUE : should fail with insufficient
array size with gl.uniform4fv | |
76 PASS getError was expected value: INVALID_VALUE : should fail with non-multiple
array size with gl.uniform4fv | |
77 PASS getError was expected value: NO_ERROR : can set an array of uniforms with g
l.uniform4fv | |
78 PASS getError was expected value: NO_ERROR : can call gl.getUniform | |
79 PASS gl.getUniform returns the correct type. | |
80 PASS getError was expected value: NO_ERROR : can get location of element 0 of ar
ray from gl.getUniformLocation | |
81 PASS getError was expected value: NO_ERROR : can get value of element 0 of array
from gl.getUniform | |
82 PASS value put in ([16, 15, 14, 13]) matches value pulled out ([16, 15, 14, 13]) | |
83 PASS getError was expected value: NO_ERROR : can get location of element 1 of ar
ray from gl.getUniformLocation | |
84 PASS getError was expected value: NO_ERROR : can get value of element 1 of array
from gl.getUniform | |
85 PASS value put in ([12, 11, 10, 9]) matches value pulled out ([12, 11, 10, 9]) | |
86 PASS getError was expected value: NO_ERROR : can get location of element 2 of ar
ray from gl.getUniformLocation | |
87 PASS getError was expected value: NO_ERROR : can get value of element 2 of array
from gl.getUniform | |
88 PASS value put in ([8, 7, 6, 5]) matches value pulled out ([8, 7, 6, 5]) | |
89 PASS getError was expected value: INVALID_OPERATION : using the wrong size of gl
.Uniform fails | |
90 PASS passing non-array to glUniform*fv should throw TypeError | |
91 PASS getError was expected value: NO_ERROR : can call gl.useProgram(null) | |
92 | |
93 PASS successfullyParsed is true | |
94 | |
95 TEST COMPLETE | |
96 | |
OLD | NEW |