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
/
execution
/
fs-saturate-sqrt.shader_test
blob
f901dbe3e4a105af632b61bddb3a88d79cc0564f
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform vec4 v;
12
13
void main()
14
{
15
gl_FragColor = 0.25 + clamp(sqrt(v), 0.0, 1.0) * 0.5;
16
}
17
18
[test]
19
uniform vec4 v 0.25 1.0 2.0 0.25
20
21
draw rect -1 -1 2 2
22
probe all rgba 0.5 0.75 0.75 0.5