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
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
mesa_shader_integer_functions
/
compiler
/
indirect-projGradOffset-shadow.frag
blob
babffe29b0271b147e48d72d429b0ece28b2836d
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.30
4
// require_extensions: GL_MESA_shader_integer_functions
5
// [end config]
6
#version 130
7
#extension GL_MESA_shader_integer_functions: require
8
9
uniform int i;
10
uniform vec4 coord;
11
uniform sampler2DShadow s[5];
12
13
void main()
14
{
15
float f = textureProjGradOffset(s[i], coord, coord.xy, coord.zw,
16
ivec2(-5, 3));
17
gl_FragColor = vec4(0, f, 0, 1);
18
}