mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-13 21:50:06 +00:00
33c7e30860
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
47 lines
2.2 KiB
Plaintext
47 lines
2.2 KiB
Plaintext
spv.set.vert
|
|
// Module Version 10000
|
|
// Generated by (magic number): 8000b
|
|
// Id's are bound by 22
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main" 9
|
|
Source GLSL 450
|
|
Name 4 "main"
|
|
Name 9 "color"
|
|
Name 10 "setBuf"
|
|
MemberName 10(setBuf) 0 "color"
|
|
Name 12 "setBufInst"
|
|
Name 21 "samp2D"
|
|
Decorate 9(color) Location 0
|
|
Decorate 10(setBuf) BufferBlock
|
|
MemberDecorate 10(setBuf) 0 Offset 0
|
|
Decorate 12(setBufInst) Binding 8
|
|
Decorate 12(setBufInst) DescriptorSet 0
|
|
Decorate 21(samp2D) Binding 7
|
|
Decorate 21(samp2D) DescriptorSet 4
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeFloat 32
|
|
7: TypeVector 6(float) 4
|
|
8: TypePointer Output 7(fvec4)
|
|
9(color): 8(ptr) Variable Output
|
|
10(setBuf): TypeStruct 7(fvec4)
|
|
11: TypePointer Uniform 10(setBuf)
|
|
12(setBufInst): 11(ptr) Variable Uniform
|
|
13: TypeInt 32 1
|
|
14: 13(int) Constant 0
|
|
15: TypePointer Uniform 7(fvec4)
|
|
18: TypeImage 6(float) 2D sampled format:Unknown
|
|
19: TypeSampledImage 18
|
|
20: TypePointer UniformConstant 19
|
|
21(samp2D): 20(ptr) Variable UniformConstant
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
16: 15(ptr) AccessChain 12(setBufInst) 14
|
|
17: 7(fvec4) Load 16
|
|
Store 9(color) 17
|
|
Return
|
|
FunctionEnd
|