projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git]
/
Test
/
spv.nullInit.comp
1
#version 460
\r
2
\r
3
#extension GL_EXT_null_initializer : enable
\r
4
\r
5
#ifdef GL_EXT_null_initializer
\r
6
\r
7
struct S {
\r
8
vec3[4] v;
\r
9
int a;
\r
10
};
\r
11
\r
12
struct T {
\r
13
int b;
\r
14
S s;
\r
15
};
\r
16
\r
17
shared float f = { };
\r
18
shared T t1 = { };
\r
19
shared T t2 = { };
\r
20
shared S s = { };
\r
21
shared float g = { };
\r
22
shared int i = { };
\r
23
\r
24
void main()
\r
25
{
\r
26
S local = { };
\r
27
++local.a;
\r
28
}
\r
29
\r
30
S global = { };
\r
31
\r
32
#endif
\r