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:
parent
df3398078f
commit
5073d93ec4
39 changed files with 65 additions and 1 deletions
|
|
@ -288,12 +288,14 @@ local_size = (128, 1, 1)
|
|||
Decorate 30(sb) BufferBlock
|
||||
MemberDecorate 30(sb) 0 NonWritable
|
||||
MemberDecorate 30(sb) 0 Offset 0
|
||||
Decorate 32(sb) NonWritable
|
||||
Decorate 32(sb) Binding 0
|
||||
Decorate 32(sb) DescriptorSet 0
|
||||
Decorate 64 ArrayStride 12
|
||||
Decorate 65(o) BufferBlock
|
||||
MemberDecorate 65(o) 0 NonWritable
|
||||
MemberDecorate 65(o) 0 Offset 0
|
||||
Decorate 67(o) NonWritable
|
||||
Decorate 67(o) Binding 1
|
||||
Decorate 67(o) DescriptorSet 0
|
||||
Decorate 83(id) BuiltIn LocalInvocationIndex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue