Results for spec/glsl-1.20/compiler/structure-and-array-operations/array-size-selection.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.337511062622
note Returncode was 1
errors
  • Failed to compile vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-size-selection.vert: ERROR: 0:15: \'array of 4-component vector of float\' : constructor not supported for type
  • ERROR: 0:15: \'array of 4-component vector of float\' : no matching overloaded function found
  • ERROR: 0:15: \'const\' : non-matching types for const initializer
  • ERROR: 0:16: \'array of 4-component vector of float\' : constructor not supported for type
  • ERROR: 0:16: \'array of 4-component vector of float\' : no matching overloaded function found
  • ERROR: 0:16: \'const\' : non-matching types for const initializer
  • ERROR: 0:17: \'length\' : no matching method not found
  • ERROR: 0:17: \'\' : constant expression required
  • ERROR: 0:17: \'c\' : array size must be a positive integer
info
Returncode: 1

Errors:
Failed to compile vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-size-selection.vert: ERROR: 0:15: 'array of 4-component vector of float' : constructor not supported for type 
ERROR: 0:15: 'array of 4-component vector of float' : no matching overloaded function found 
ERROR: 0:15: 'const' :  non-matching types for const initializer  
ERROR: 0:16: 'array of 4-component vector of float' : constructor not supported for type 
ERROR: 0:16: 'array of 4-component vector of float' : no matching overloaded function found 
ERROR: 0:16: 'const' :  non-matching types for const initializer  
ERROR: 0:17: 'length' : no matching method not found 
ERROR: 0:17: '' : constant expression required 
ERROR: 0:17: 'c' : array size must be a positive integer 



Output:
Shader source:
/* [config]
 * expect_result: pass
 * glsl_version: 1.20
 * [end config]
 *
 * From page 38 (page 44 of the PDF) of the GLSL 1.20 spec:
 *
 *     "The ternary selection operator (?:). It operates on three expressions
 *     (exp1 ? exp2 : exp3)....The second and third expressions can be any
 *     type, as long their types match....This resulting matching type is
 *     the type of the entire expression."
 */
#version 120

const vec4[] a = vec4[](vec4(0), vec4(1));
const vec4[] b = vec4[](vec4(1), vec4(0));
uniform vec4 c[((true) ? a : b).length()];

void main()
{
  gl_Position = c[0];
}

Back to summary