Results for spec/glsl-1.10/compiler/expressions/invalid-equality-04.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.350501060486
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.10/compiler/expressions/invalid-equality-04.vert fail 1.10
errors
  • Successfully compiled vertex shader tests/spec/glsl-1.10/compiler/expressions/invalid-equality-04.vert: 0(20) : warning C7011: implicit cast from "bool" to "int"
info
Returncode: 1

Errors:
Successfully compiled vertex shader tests/spec/glsl-1.10/compiler/expressions/invalid-equality-04.vert: 0(20) : warning C7011: implicit cast from "bool" to "int"



Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]

#ifdef GL_ES
precision mediump float;
#endif

attribute vec4 vertex;

vec4 A(bool flag) {
	if (flag)
		return vertex;
	else
		return vec4(1.0) - vertex;
}

void main() {
	gl_Position = A(0 == 1 == 2);
}

Back to summary