Results for spec/glsl-1.20/compiler/qualifiers/out-conversion-int-to-float.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.300835132599
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.20/compiler/qualifiers/out-conversion-int-to-float.vert pass 1.20
errors
  • Failed to compile vertex shader tests/spec/glsl-1.20/compiler/qualifiers/out-conversion-int-to-float.vert: 0(29) : error C1113: actual parameter #1 must be same type as formal out parameter ("x")
info
Returncode: 1

Errors:
Failed to compile vertex shader tests/spec/glsl-1.20/compiler/qualifiers/out-conversion-int-to-float.vert: 0(29) : error C1113: actual parameter #1 must be same type as formal out parameter ("x")



Output:
Shader source:
/*
 * [config]
 * glsl_version: 1.20
 * expect_result: pass
 * [end_config]
 *
 * Test that implicit type conversion of out parameters is properly
 * used to match function calls to callees.
 *
 * From the GLSL 1.30 spec (which clarifies, but does not change, the
 * rules for implicit type conversion in GLSL 1.20), section 6.1
 * (Function Definitions):
 *
 *   Mismatched types on output parameters (out or inout) must have a
 *   conversion from the formal parameter type to the calling argument
 *   type.
 */

#version 120

void f(out int x)
{
  x = 0;
}

void
main() {
    float x;
    f(x);
    gl_Position = gl_Vertex;
}

Back to summary