Results for spec/glsl-1.20/compiler/structure-and-array-operations/array-variable-index-implicit-size-global.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.421555995941
note
Returncode was 1
errors
  • Successfully compiled vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-variable-index-implicit-size-global.vert:
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-variable-index-implicit-size-global.vert fail 1.20
info
Returncode: 1

Errors:
Successfully compiled vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-variable-index-implicit-size-global.vert: 


Output:
Shader source:
/* [config]
 * expect_result: fail
 * glsl_version: 1.20
 * [end config]
 *
 * From page 19 (page 25 of the PDF) of the GLSL 1.20 spec:
 *
 *     "If an array is indexed with an expression that is not an integral
 *     constant expression, or if an array is passed as an argument to a
 *     function, then its size must be declared before any such use."
 */
#version 120

/* Assume the array is sized in a different compilation unit.
 */
vec4 [] an_array;

uniform int i;

void main()
{
  gl_Position = an_array[i];
}

Back to summary