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.50
/
compiler
/
illegal-nonconst-access-to-unsized-array-in-named-ifc-block.frag
blob
c5f0e92b57e8e478f2e36df514516474ecd7e5ea
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.50
4
// check_link: true
5
// [end config]
6
//
7
// Test that if an interface block contains an unsized array, it is
8
// illegal to access it using a non-constant index.
9
//
10
// This test uses a named interface block.
11
12
#version 150
13
14
in block {
15
float foo[];
16
} inst;
17
18
uniform int bar;
19
20
void main()
21
{
22
gl_FragColor = vec4(inst.foo[bar]);
23
}