SPV: Distinguish between SPV and non-SPV rules for member overlap.
This commit is contained in:
parent
087a454af2
commit
19bdf90eba
6 changed files with 94 additions and 15 deletions
17
Test/spv.offsets.frag
Executable file
17
Test/spv.offsets.frag
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#version 450
|
||||
|
||||
layout(set = 0, binding = 0, std140) uniform n1 {
|
||||
layout(offset = 8) int a;
|
||||
layout(offset = 4) int b;
|
||||
layout(offset = 0) int c;
|
||||
layout(offset = 12) int d;
|
||||
} i1;
|
||||
|
||||
layout(set = 0, binding = 1, std430) buffer n2 {
|
||||
layout(offset = 32) vec3 e;
|
||||
vec3 f;
|
||||
layout(offset = 16) vec3 g;
|
||||
layout(offset = 0) vec3 h;
|
||||
} i2;
|
||||
|
||||
void main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue