Results for spec/glsl-1.10/compiler/storage-qualfiers/static-write-varying-01.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.431509017944
note
Returncode was 1
errors
  • Successfully compiled fragment shader tests/spec/glsl-1.10/compiler/storage-qualfiers/static-write-varying-01.frag:
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.10/compiler/storage-qualfiers/static-write-varying-01.frag fail 1.10
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/spec/glsl-1.10/compiler/storage-qualfiers/static-write-varying-01.frag: 


Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
//
// From section 4.3.6 of the GLSL 1.10 spec:
//     A fragment shader can not write to a varying variable.

#version 110

varying float x;

void f(out float y) {
    y = 0.0;
}

void g() {
    f(x);
}

Back to summary