Results for glslparsertest/glsl2/array-compare-03.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.233999967575
note Returncode was 1
errors
  • Successfully compiled vertex shader tests/glslparsertest/glsl2\\array-compare-03.vert: Vertex shader was successfully compiled to run on hardware.
info
Returncode: 1

Errors:
Successfully compiled vertex shader tests/glslparsertest/glsl2\array-compare-03.vert: Vertex shader was successfully compiled to run on hardware.



Output:
Shader source:
/* From page 33 (page 39 of the PDF) of the GLSL 1.10 spec:
 *
 *     "The equality operators equal (==), and not equal (!=) operate on all
 *     types except arrays."
 *
 * [config]
 * expect_result: fail
 * glsl_version: 1.10
 * [end config]
 */
varying vec4 color;
void main()
{
	int a[4];
	int b[4];

	a[0] = 0;
	a[1] = 1;
	a[2] = 2;
	a[3] = 3;
	b[0] = 0;
	b[1] = 1;
	b[2] = 2;
	b[3] = 3;

	color = float(b == a) * vec4(0, 1, 0, 1);
}

Back to summary