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
|
|
@ -131,6 +131,7 @@ gl_FragCoord origin is upper left
|
|||
Name 29 "r01"
|
||||
Name 37 "ps_output"
|
||||
Name 47 "@entryPointOutput.color"
|
||||
Decorate 19($Global) Block
|
||||
MemberDecorate 19($Global) 0 Offset 0
|
||||
MemberDecorate 19($Global) 1 Offset 4
|
||||
MemberDecorate 19($Global) 2 Offset 8
|
||||
|
|
@ -139,9 +140,8 @@ gl_FragCoord origin is upper left
|
|||
MemberDecorate 19($Global) 5 Offset 24
|
||||
MemberDecorate 19($Global) 6 Offset 32
|
||||
MemberDecorate 19($Global) 7 Offset 40
|
||||
Decorate 19($Global) Block
|
||||
Decorate 21 DescriptorSet 0
|
||||
Decorate 21 Binding 0
|
||||
Decorate 21 DescriptorSet 0
|
||||
Decorate 47(@entryPointOutput.color) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue