repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
preprocessor
/
unary-op-minus-define.shader_test
blob
966e55626feca0c0314537264778009589d065d6
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader passthrough]
5
6
[fragment shader]
7
#version 110
8
9
#define VALUE -1.0
10
const float x = -VALUE;
11
12
void main()
13
{
14
gl_FragColor = vec4(0.0, x, 0.0, 1.0);
15
}
16
17
[test]
18
draw rect -1 -1 2 2
19
probe all rgba 0.0 1.0 0.0 1.0