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
/
glsl-const-initializer-01.shader_test
blob
e763f04afde7cd82d7eab298e708400432910f23
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
uniform float a;
6
uniform float b;
7
void main(void)
8
{
9
mat2 m = mat2(0.5, 0.5, 0.5, 0.5);
10
m[0][0] = m[0][0] + a;
11
m[0][0] = m[0][0] - b;
12
gl_FragColor = vec4(m[0][0], m[0][1], m[1][0], m[1][1]);
13
}
14
15
[test]
16
uniform float a 0.3
17
uniform float b 0.3
18
draw rect -1 -1 2 2
19
probe all rgba 0.5 0.5 0.5 0.5
20