Status: fail
Result: fail
Detail | Value |
---|---|
returncode | 1 |
time | 0.221815109253 |
note | Returncode was 1 |
errors |
|
info | Returncode: 1 Errors: Failed to compile fragment shader tests/glslparsertest/glsl2/const-array-02.frag: ERROR: 0:5: 'array of float' : constructor not supported for type ERROR: 0:5: 'array of float' : no matching overloaded function found ERROR: 0:5: 'const float' : cannot declare arrays of this type ERROR: 0:5: 'a' : redefinition ERROR: 0:6: 'expression' : left of '[' is not of type array, matrix, or vector ERROR: 0:6: '=' : assigning non-constant to 'const float' ERROR: 0:7: 'expression' : left of '[' is not of type array, matrix, or vector ERROR: 0:7: '=' : assigning non-constant to 'const float' ERROR: 0:8: 'expression' : left of '[' is not of type array, matrix, or vector ERROR: 0:8: '=' : assigning non-constant to 'const float' ERROR: 0:9: 'expression' : left of '[' is not of type array, matrix, or vector ERROR: 0:9: '=' : assigning non-constant to 'const float' Output: Shader source: /* PASS */ #version 120 void main() { const float a[] = float[](0.0, 1.0, 0.0, 1.0); const float a0 = a[0]; const float a1 = a[1]; const float a2 = a[2]; const float a3 = a[3]; gl_FragColor = vec4(a0, a1, a2, a3); } |