repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
shaders
/
glsl-algebraic-rcp-sqrt.shader_test
blob
3ba6c0dc011420337c89d596326c0ca3b1409d8c
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
uniform vec4 color;
13
void main()
14
{
15
gl_FragColor = vec4(0.0, 1.0 / sqrt(color.g), 0.0, 0.0);
16
}
17
18
[test]
19
uniform vec4 color 0.0 2.0 0.0 0.0
20
draw rect -1 -1 2 2
21
probe rgb 1 1 0.0 0.7071 0.0