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

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.921000003815
note Returncode was 1
errors
  • Failed to compile vertex shader tests/glslparsertest/glsl2\\array-compare-04.vert: ERROR: 0:14: \'GL_3DL_array_objects\' : extension is disabled
  • ERROR: 0:14: \'GL_3DL_array_objects\' : extension is disabled
  • ERROR: 0:14: \'constructor\' : too many arguments
  • ERROR: 0:14: \'uniform\' : cannot initialize this type of qualifier
  • ERROR: 0:17: \'GL_3DL_array_objects\' : extension is disabled
  • ERROR: 0:17: \'GL_3DL_array_objects\' : extension is disabled
  • ERROR: 0:17: \'constructor\' : too many arguments
  • ERROR: 0:17: \'=\' : cannot convert from \'const int\' to \'array of int\'
  • ERROR: 0:18: \'==\' : wrong operand types no operation \'==\' exists that takes a left-hand operand of type \'array of int\' and a right operand of type \'uniform int\' (or there is no acceptable conversion)
  • ERROR: 9 compilation errors. No code generated.
info
Returncode: 1

Errors:
Failed to compile vertex shader tests/glslparsertest/glsl2\array-compare-04.vert: ERROR: 0:14: 'GL_3DL_array_objects' : extension is disabled
ERROR: 0:14: 'GL_3DL_array_objects' : extension is disabled
ERROR: 0:14: 'constructor' : too many arguments 
ERROR: 0:14: 'uniform' :  cannot initialize this type of qualifier  
ERROR: 0:17: 'GL_3DL_array_objects' : extension is disabled
ERROR: 0:17: 'GL_3DL_array_objects' : extension is disabled
ERROR: 0:17: 'constructor' : too many arguments 
ERROR: 0:17: '=' :  cannot convert from 'const int' to 'array of int'
ERROR: 0:18: '==' :  wrong operand types  no operation '==' exists that takes a left-hand operand of type 'array of int' and a right operand of type 'uniform int' (or there is no acceptable conversion)
ERROR: 9 compilation errors.  No code generated.




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