Add decorations to structs with buffer references

The containsPhysicalStorageBufferOrArray function now handles struct
types correctly, checking their contents recursively for buffer
reference types. As a result, OpVariables containing structs that have
members that are buffer references now have the appropriate
AliasedPointer or RestrictPointer decoration as per the spec.

Fixes #3188
This commit is contained in:
Arcady Goldmints-Orlov 2023-05-18 16:18:42 -06:00 committed by arcady-lunarg
parent d1517d64cf
commit 9caca7a17b
3 changed files with 77 additions and 50 deletions

View file

@ -27,6 +27,8 @@ layout(set=0, binding=0) buffer T3 {
Blah Bindings[];
} t3;
void main() {
Blah x = t3.Bindings[2];
t3.Bindings[0] = t3.Bindings[1];
}