Results for spec/glsl-1.00/compiler/qualifiers/fn-out-array-allowed-cstyle.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.145452976227
note
Returncode was 1
command
/usr/local/src/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.00/compiler/qualifiers/fn-out-array-allowed-cstyle.vert pass 1.00 --check-link
errors
  • Failed to compile vertex shader tests/spec/glsl-1.00/compiler/qualifiers/fn-out-array-allowed-cstyle.vert: 0(26) : error C7551: OpenGL first class arrays require #version 120
info
Returncode: 1

Errors:
Failed to compile vertex shader tests/spec/glsl-1.00/compiler/qualifiers/fn-out-array-allowed-cstyle.vert: 0(26) : error C7551: OpenGL first class arrays require #version 120



Output:
Shader source:
// [config]
// expect_result: pass
// glsl_version: 1.00
// check_link: true
// [end config]
//
// Check that an array can be used as a function out parameter in
// GLSL 1.00.
//
// In this test, the array is declared using C-style array
// declaration syntax (float x[2] as opposed to float[2] x).
//
// From section 5.8 of the GLSL ES 1.00 spec:
//     Array variables are l-values and may be passed to parameters
//     declared as out or inout. However, they may not be used as the
//     target of an assignment.

#version 100

void f(out float x[2])
{
}

void main()
{
  float[2] x;
  f(x);
  gl_Position = vec4(0.0);
}

Back to summary