Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.231000185013 |
| note | Returncode was 1 |
| errors |
|
| info | Returncode: 1
Errors:
Successfully compiled vertex shader tests/spec/glsl-1.10\compiler\expressions\invalid-logic-not-03.vert: Vertex shader was successfully compiled to run on hardware.
Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
#ifdef GL_ES
precision mediump float;
#endif
uniform int a;
void main() {
// a is not boolean, so the logical-not operator cannot be applied
// to it. Further, the result of the logical-not operator is boolean,
// so it cannot be assigned to a variable of type int.
int x = !a;
gl_Position = vec4(x);
}
|