Results for spec/glsl-1.20/compiler/structure-and-array-operations/array-of-struct-of-array.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.274854898453
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-of-struct-of-array.vert pass 1.20
errors
  • Failed to compile vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-of-struct-of-array.vert: 0(26) : error C1010: expression left of ."x" is not a struct
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) : error C1010: expression left of ."x" is not a struct



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());
}

Back to summary