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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
texture2D-computed-coordinate.shader_test
blob
0074434226cebd6bc2c0ca5a41459c6663a7e4fe
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
uniform sampler2D tex2d;
6
void main()
7
{
8
vec2 coord = gl_TexCoord[0].xy + vec2(0.5);
9
gl_FragColor = texture2D(tex2d, coord, 0.0);
10
}
11
12
13
[test]
14
texture rgbw 0 (8, 8)
15
uniform int tex2d 0
16
draw rect tex -1 -1 2 2 0 0 1 1
17
relative probe rgba (0.5, 0.5) (1.0, 1.0, 1.0, 1.0)