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
/
glsl-1.10
/
compiler
/
constant-expressions
/
sampler-array-index-01.frag
blob
d2daabd425df8fd37ecdd46b264ed7a3b6f977d1
1
// [config]
2
// expect_result: pass
3
// glsl_version: 1.10
4
// [end config]
5
//
6
// Check that sampler arrays can be indexed with constant expressions.
7
//
8
// This should work in GLSL 1.10, GLSL 1.20, and GLSL ES 1.00.
9
10
#ifdef GL_ES
11
precision mediump float;
12
#endif
13
14
uniform sampler2D a[4];
15
16
void main() {
17
gl_FragColor = texture2D(a[0], vec2(0.0, 0.0));
18
}