Apply GLSL memory decorations to top-level OpVariable

Apply memory decorations from GLSL source to the top-level OpVariable.
Previously, these decorations would only be applied to individual
members. While this is correct behavior, it is more convenient for some
front ends to see the decorations (specifically ReadOnly and WriteOnly)
applied to the whole variable rather than individual members.
This commit is contained in:
Matthew Moulton 2024-08-28 21:46:16 +00:00 committed by GitHub
parent df3398078f
commit 5073d93ec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 65 additions and 1 deletions

View file

@ -114,14 +114,17 @@ Validation failed
Decorate 17(tbufName) BufferBlock
MemberDecorate 17(tbufName) 0 NonWritable
MemberDecorate 17(tbufName) 0 Offset 16
Decorate 19 NonWritable
Decorate 19 Binding 5
Decorate 19 DescriptorSet 3
Decorate 26(tbufName2) BufferBlock
MemberDecorate 26(tbufName2) 0 NonWritable
MemberDecorate 26(tbufName2) 0 Offset 0
Decorate 28 NonWritable
Decorate 33(tbufName2) BufferBlock
MemberDecorate 33(tbufName2) 0 NonWritable
MemberDecorate 33(tbufName2) 0 Offset 16
Decorate 35 NonWritable
Decorate 35 Binding 7
Decorate 35 DescriptorSet 4
Decorate 43(specConst) SpecId 17