Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.0445032119751 |
| note | Returncode was 1 |
| errors |
|
| info | Returncode: 1
Errors:
Failed to compile vertex shader tests/glslparsertest/glsl2/array-compare-04.vert: 0:18(30): error: operands of `==' must have the same type
Output:
Shader source:
/* From page 35 (page 41 of the PDF) of the GLSL 1.20 spec:
*
* "The equality operators and assignment operator are only allowed if the
* two operands are same size and type. Structure types must be of the same
* declared structure. Both array operands must be explicitly sized."
*
* [config]
* expect_result: pass
* glsl_version: 1.20
* [end config]
*/
#version 120
uniform int[] a = int[](0,1,2,3);
void main()
{
int[] b = int[](0,1,2,3);
gl_FrontColor = float(b == a) * vec4(0, 1, 0, 1);
}
|