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
|
|
@ -99,6 +99,7 @@ gl_FragCoord origin is upper left
|
|||
MemberDecorate 15(TextureBuffer_var) 0 Offset 0
|
||||
MemberDecorate 15(TextureBuffer_var) 1 NonWritable
|
||||
MemberDecorate 15(TextureBuffer_var) 1 Offset 16
|
||||
Decorate 17(TextureBuffer_var) NonWritable
|
||||
Decorate 17(TextureBuffer_var) Binding 0
|
||||
Decorate 17(TextureBuffer_var) DescriptorSet 0
|
||||
Decorate 22(tbuf2) BufferBlock
|
||||
|
|
@ -106,6 +107,7 @@ gl_FragCoord origin is upper left
|
|||
MemberDecorate 22(tbuf2) 0 Offset 0
|
||||
MemberDecorate 22(tbuf2) 1 NonWritable
|
||||
MemberDecorate 22(tbuf2) 1 Offset 16
|
||||
Decorate 24 NonWritable
|
||||
Decorate 24 Binding 1
|
||||
Decorate 24 DescriptorSet 0
|
||||
Decorate 32(pos) BuiltIn FragCoord
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue