Status: fail
Result: fail
Detail | Value |
---|---|
returncode | 1 |
time | 0.305094957352 |
note | Returncode was 1 |
errors |
|
info | Returncode: 1 Errors: Failed to compile vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-assign.vert: ERROR: 0:24: 'array of 4-component vector of float' : constructor not supported for type ERROR: 0:24: 'array of 4-component vector of float' : no matching overloaded function found ERROR: 0:24: 'assign' : cannot convert from 'const float' to 'array of 4-component vector of float' ERROR: 0:25: 'array of 4-component vector of float' : constructor not supported for type ERROR: 0:25: 'array of 4-component vector of float' : no matching overloaded function found ERROR: 0:25: 'assign' : cannot convert from 'const float' to 'array of 4-component vector of float' ERROR: 0:26: 'assign' : cannot convert from 'array of 4-component vector of float' to 'array of 4-component vector of float' Output: Shader source: /* [config] * expect_result: pass * glsl_version: 1.20 * [end config] * * From page 35 (page 41 of the PDF) of the GLSL 1.20 spec: * * "In total, only the following operators are allowed to operate on * arrays and structures as whole entities: * * field or method selector . * equality == != * assignment = * indexing (arrays only) []" */ #version 120 void main() { vec4 a[2]; vec4 b[2]; vec4 c[2]; a = vec4[2](vec4(0.0), vec4(2.0)); b = vec4[ ](vec4(0.5), vec4(2.0)); c = a; gl_Position = a[0] + b[0] + c[1]; } |