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
/
arb_shading_language_420pack
/
compiler
/
illegal-aggregate-initializer-vec-too-few-elements.frag
blob
85ae8d99b70e5ffaeea26a066f45261bb0d560b4
1
/* [config]
2
* expect_result: fail
3
* glsl_version: 1.30
4
* require_extensions: GL_ARB_shading_language_420pack
5
* [end config]
6
*/
7
8
#version 130
9
#extension GL_ARB_shading_language_420pack: enable
10
11
void main() {
12
// Illegal since b is a 3-element vector, but 2 elements given as initializer
13
vec3 b = { 1.0, 2.0 };
14
gl_FragColor = vec4(1.0);
15
}