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
fbo-mrt-alphatest: Actually require MRTs to be available.
[piglit.git]
/
tests
/
spec
/
arb_shading_language_420pack
/
compiler
/
illegal-aggregate-initializer-struct-too-many-fields.frag
blob
3bab1f7d687f1fa93230c2f6cf846a9ac8067538
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 e has 2 fields, but 3 given as initializer
13
struct {
14
float a;
15
int b;
16
} e = { 1.2, 2, 3 };
17
gl_FragColor = vec4(1.0);
18
}