glslang/Test/baseResults/hlsl.pp.vert.out
Steven Perron 33c7e30860
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
2024-06-28 19:16:59 -04:00

63 lines
2.4 KiB
Plaintext

hlsl.pp.vert
Shader version: 500
0:? Sequence
0:17 Function Definition: @main( ( temp void)
0:17 Function Parameters:
0:17 Function Definition: main( ( temp void)
0:17 Function Parameters:
0:? Sequence
0:17 Function Call: @main( ( temp void)
0:? Linker Objects
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int goodGlobal1, uniform int goodGlobal2})
Linked vertex stage:
Shader version: 500
0:? Sequence
0:17 Function Definition: @main( ( temp void)
0:17 Function Parameters:
0:17 Function Definition: main( ( temp void)
0:17 Function Parameters:
0:? Sequence
0:17 Function Call: @main( ( temp void)
0:? Linker Objects
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int goodGlobal1, uniform int goodGlobal2})
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 13
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main"
Source HLSL 500
Name 4 "main"
Name 6 "@main("
Name 10 "$Global"
MemberName 10($Global) 0 "goodGlobal1"
MemberName 10($Global) 1 "goodGlobal2"
Name 12 ""
Decorate 10($Global) Block
MemberDecorate 10($Global) 0 Offset 0
MemberDecorate 10($Global) 1 Offset 4
Decorate 12 Binding 0
Decorate 12 DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
9: TypeInt 32 1
10($Global): TypeStruct 9(int) 9(int)
11: TypePointer Uniform 10($Global)
12: 11(ptr) Variable Uniform
4(main): 2 Function None 3
5: Label
8: 2 FunctionCall 6(@main()
Return
FunctionEnd
6(@main(): 2 Function None 3
7: Label
Return
FunctionEnd