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:
Steven Perron 2024-06-28 19:16:59 -04:00 committed by GitHub
parent 7c40de7aa2
commit 33c7e30860
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
575 changed files with 3482 additions and 3414 deletions

View file

@ -40,37 +40,37 @@ Validation failed
Decorate 23(o) Location 0
Decorate 28(gl_ClipDistance) BuiltIn ClipDistance
Decorate 38(k) Location 0
Decorate 50(sampR) DescriptorSet 0
Decorate 50(sampR) Binding 0
Decorate 58(sampB) DescriptorSet 0
Decorate 50(sampR) DescriptorSet 0
Decorate 58(sampB) Binding 1
Decorate 82(samp2Da) DescriptorSet 0
Decorate 58(sampB) DescriptorSet 0
Decorate 82(samp2Da) Binding 0
Decorate 82(samp2Da) DescriptorSet 0
Decorate 85 ArrayStride 64
Decorate 86 ArrayStride 64
MemberDecorate 87(bn) 0 RowMajor
MemberDecorate 87(bn) 0 Offset 0
MemberDecorate 87(bn) 0 MatrixStride 16
MemberDecorate 87(bn) 1 ColMajor
MemberDecorate 87(bn) 1 Offset 256
MemberDecorate 87(bn) 1 MatrixStride 16
MemberDecorate 87(bn) 2 RowMajor
MemberDecorate 87(bn) 2 Offset 512
MemberDecorate 87(bn) 2 MatrixStride 16
MemberDecorate 87(bn) 3 ColMajor
MemberDecorate 87(bn) 3 Offset 576
MemberDecorate 87(bn) 3 MatrixStride 16
MemberDecorate 87(bn) 4 RowMajor
MemberDecorate 87(bn) 4 Offset 1024
MemberDecorate 87(bn) 4 MatrixStride 16
Decorate 87(bn) Block
Decorate 89 DescriptorSet 0
MemberDecorate 87(bn) 0 RowMajor
MemberDecorate 87(bn) 0 MatrixStride 16
MemberDecorate 87(bn) 0 Offset 0
MemberDecorate 87(bn) 1 ColMajor
MemberDecorate 87(bn) 1 MatrixStride 16
MemberDecorate 87(bn) 1 Offset 256
MemberDecorate 87(bn) 2 RowMajor
MemberDecorate 87(bn) 2 MatrixStride 16
MemberDecorate 87(bn) 2 Offset 512
MemberDecorate 87(bn) 3 ColMajor
MemberDecorate 87(bn) 3 MatrixStride 16
MemberDecorate 87(bn) 3 Offset 576
MemberDecorate 87(bn) 4 RowMajor
MemberDecorate 87(bn) 4 MatrixStride 16
MemberDecorate 87(bn) 4 Offset 1024
Decorate 89 Binding 0
Decorate 89 DescriptorSet 0
Decorate 91 ArrayStride 16
MemberDecorate 92(bi) 0 Offset 0
Decorate 92(bi) Block
Decorate 95(bname) DescriptorSet 0
MemberDecorate 92(bi) 0 Offset 0
Decorate 95(bname) Binding 0
Decorate 95(bname) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32