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
glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git]
/
tests
/
shaders
/
glsl-const-builtin-exp2.shader_test
blob
e3bada7aa5a286e389e897cc176d196c5e28c8d2
1
[require]
2
GLSL >= 1.20
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
8
}
9
10
[fragment shader]
11
void main()
12
{
13
const float one_half = exp2(16.0) - 65535.5;
14
gl_FragColor = vec4(0.0, one_half, 0.0, 1.0);
15
}
16
17
[test]
18
draw rect -1 -1 2 2
19
probe all rgb 0.0 0.5 0.0