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-const-builtin-notEqual-02.shader_test
blob
9e78bb81aa8935ca6df786e777aab6361b236cef
1
2
[require]
3
GL >= 2.0
4
GLSL >= 1.20
5
6
[vertex shader file]
7
glsl-mvp.vert
8
9
[fragment shader]
10
#version 120
11
void main()
12
{
13
const bvec2 res = notEqual(vec2(3.0, 3.14),
14
vec2(-6.0, 7.88));
15
gl_FragColor = (res == bvec2(true, true))
16
? vec4(0.0, 1.0, 0.0, 1.0) : vec4(1.0, 0.0, 0.0, 1.0);
17
}
18
19
[test]
20
clear color 0.0 0.0 0.0 0.0
21
clear
22
ortho
23
draw rect 10 10 10 10
24
probe rgb 15 15 0.0 1.0 0.0