Status: fail
Result: fail
Detail | Value |
---|---|
returncode | 1 |
time | 0.280999898911 |
note | Returncode was 1 |
command | Z:\piglit\framework/../bin/glslparsertest tests\spec\glsl-1.20\compiler\structure-and-array-operations\array-size-selection.vert pass 1.20 |
errors |
|
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: 'const void' : cannot declare arrays of this qualifier ERROR: 0:15: 'const' : non-matching types (using implicit conversion) for const initializer ERROR: 0:16: 'const void' : cannot declare arrays of this qualifier ERROR: 0:16: 'const' : non-matching types (using implicit conversion) for const initializer ERROR: 0:17: '' : methods are not supported ERROR: 0:17: 'length' : no matching overloaded function found (using implicit conversion) ERROR: 0:17: '' : array size must be a constant integer expression 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]; } |