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-fs-cross.shader_test
blob
83454360d334d7591a624e96200ffbf5549a58b0
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform vec3 arg0;
12
uniform vec3 arg1;
13
void main()
14
{
15
gl_FragColor = vec4(cross(arg0, arg1), 0.0);
16
}
17
18
[test]
19
uniform vec3 arg0 0.0 0.0 1.0
20
uniform vec3 arg1 1.0 0.0 0.0
21
draw rect -1 -1 2 2
22
probe rgba 1 1 0.0 1.0 0.0 0.0