Status: fail
Result: fail
Detail | Value |
---|---|
returncode | 1 |
time | 0.0482151508331 |
note | Returncode was 1 |
command | /home/pniemine/graphics/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-of-struct-of-array.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-of-struct-of-array.vert: 0:26(37): error: Cannot access field `x' of non-structure / non-vector. 0:26(37): error: type mismatch 0:26(45): error: type mismatch 0:26(46): error: Operands to arithmetic operators must be numeric 0:26(16): error: cannot construct `vec4' from a non-numeric data type Output: Shader source: /* [config] * expect_result: pass * glsl_version: 1.20 * [end config] * * From page 18 (page 24 of the PDF) of the GLSL 1.20 spec: * * "Member declarators can contain arrays. Such arrays must have a size * specified, and the size must be an integral constant expression that's * greater than zero (see Section 4.3.3 "Constant Expressions")." * * From page 19 (page 25 of the PDF) of the GLSL 1.20 spec: * * "All basic types and structures can be formed into arrays." */ #version 120 struct s { float x[3]; int y; }; void main() { s a[2]; gl_Position = vec4(a.length() + a.x.length()); } |