Results for valgrind/glslparsertest/glsl2/array-compare-04.vert

Overview

Status: skip
Result: skip

Back to summary

Details

Detail Value
returncode 0
time 3.9904229641
errors
  • Failed to compile vertex shader tests/glslparsertest/glsl2/array-compare-04.vert: 0:18(30): error: operands of `==\' must have the same type
info
Returncode: 0

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);
}

Back to summary