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-struct-bool-to-struct.frag
blob
57ec89c4f6842569a0b88996f8d6139bc06f6d3c
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
struct s { bool f; };
12
13
void main() {
14
// Illegal since e.b is bool, but struct given as initializer
15
struct {
16
float a;
17
bool b;
18
} e = { 1.2, s(true) };
19
gl_FragColor = vec4(1.0);
20
}