Don't emit duplicate decorations. (#3635)
It is invalid if the same decoration is applied to the same id multiple times. This adds a check before adding a decoration that the decoration is not already in the list. If it is, then the duplicate is not added. Fixes #3627
This commit is contained in:
parent
7c40de7aa2
commit
33c7e30860
575 changed files with 3482 additions and 3414 deletions
|
|
@ -29,10 +29,11 @@ spv.bufferhandle1.frag
|
|||
MemberName 13(blockType) 6 "g"
|
||||
Name 15 "t"
|
||||
Name 28 "j"
|
||||
Decorate 7(t2) Block
|
||||
MemberDecorate 7(t2) 0 Offset 0
|
||||
MemberDecorate 7(t2) 1 Offset 8
|
||||
Decorate 7(t2) Block
|
||||
Decorate 11 ArrayStride 4
|
||||
Decorate 13(blockType) Block
|
||||
MemberDecorate 13(blockType) 0 Offset 0
|
||||
MemberDecorate 13(blockType) 1 Offset 4
|
||||
MemberDecorate 13(blockType) 2 Offset 8
|
||||
|
|
@ -40,9 +41,8 @@ spv.bufferhandle1.frag
|
|||
MemberDecorate 13(blockType) 4 Offset 16
|
||||
MemberDecorate 13(blockType) 5 Offset 32
|
||||
MemberDecorate 13(blockType) 6 Offset 48
|
||||
Decorate 13(blockType) Block
|
||||
Decorate 15(t) DescriptorSet 0
|
||||
Decorate 15(t) Binding 0
|
||||
Decorate 15(t) DescriptorSet 0
|
||||
Decorate 28(j) DecorationAliasedPointerEXT
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue