(value)
| 12274 | } |
| 12275 | |
| 12276 | function checkUniformArray(value) { |
| 12277 | // Check that every element in array is a number, and at least 1 element |
| 12278 | if (value.length === 0) { |
| 12279 | return false; |
| 12280 | } |
| 12281 | |
| 12282 | var checkLength = Math.min(value.length, 16); |
| 12283 | |
| 12284 | for (var i = 0; i < checkLength; ++i) { |
| 12285 | if (!Number.isFinite(value[i])) { |
| 12286 | return false; |
| 12287 | } |
| 12288 | } |
| 12289 | |
| 12290 | return true; |
| 12291 | } |
| 12292 | /** |
| 12293 | * Given two values of a uniform, returns `true` if they are equal |
| 12294 | */ |
no test coverage detected