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-uniform-initializer-4.shader_test
blob
04527359fb9d91ce794ce18af2bcbde5c1a8e4f0
1
[require]
2
GL >= 2.0
3
GLSL >= 1.20
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
#version 120
13
14
/* Makes sure that integer uniform initializers get through. */
15
uniform ivec4 color = ivec4(0, 1, 0, 0);
16
void main()
17
{
18
gl_FragColor = vec4(color);
19
}
20
21
[test]
22
draw rect -1 -1 2 2
23
probe all rgb 0.0 1.0 0.0