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.WorkgroupMemoryExplicitLayout.scalar.comp
1
#version 430 core
2
3
#extension GL_EXT_scalar_block_layout : enable
4
#extension GL_EXT_shared_memory_block : enable
5
6
layout(local_size_x = 8) in;
7
8
struct T
9
{
10
float t[3];
11
};
12
13
struct S
14
{
15
float f;
16
vec2 v2;
17
vec3 v3;
18
vec4 v4;
19
T t;
20
21
float f_array[6];
22
vec2 v2_array[6];
23
vec3 v3_array[6];
24
vec4 v4_array[6];
25
T t_array[6];
26
};
27
28
// Use a default qualifier.
29
layout(scalar) shared;
30
31
shared Block
32
{
33
S s;
34
S s_array[6];
35
};
36
37
void main()
38
{
39
}