1hlsl.entry.rename.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:7  Function Definition: not_the_entry_point( ( temp void)
60:7    Function Parameters:
70:11  Function Definition: @main_in_spv( ( temp structure{ temp 4-component vector of float Color})
80:11    Function Parameters:
90:?     Sequence
100:13      move second child to first child ( temp 4-component vector of float)
110:13        Color: direct index for structure ( temp 4-component vector of float)
120:13          'psout' ( temp structure{ temp 4-component vector of float Color})
130:13          Constant:
140:13            0 (const int)
150:13        Constant:
160:13          0.000000
170:13          0.000000
180:13          0.000000
190:13          0.000000
200:14      Branch: Return with expression
210:14        'psout' ( temp structure{ temp 4-component vector of float Color})
220:11  Function Definition: main_in_spv( ( temp void)
230:11    Function Parameters:
240:?     Sequence
250:11      Sequence
260:11        move second child to first child ( temp 4-component vector of float)
270:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
280:11          Color: direct index for structure ( temp 4-component vector of float)
290:11            Function Call: @main_in_spv( ( temp structure{ temp 4-component vector of float Color})
300:11            Constant:
310:11              0 (const int)
320:?   Linker Objects
330:?     'anon@0' (layout( row_major std140) uniform block{ uniform int also_not_the_entry_point})
340:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
35
36
37Linked fragment stage:
38
39
40Shader version: 500
41gl_FragCoord origin is upper left
420:? Sequence
430:7  Function Definition: not_the_entry_point( ( temp void)
440:7    Function Parameters:
450:11  Function Definition: @main_in_spv( ( temp structure{ temp 4-component vector of float Color})
460:11    Function Parameters:
470:?     Sequence
480:13      move second child to first child ( temp 4-component vector of float)
490:13        Color: direct index for structure ( temp 4-component vector of float)
500:13          'psout' ( temp structure{ temp 4-component vector of float Color})
510:13          Constant:
520:13            0 (const int)
530:13        Constant:
540:13          0.000000
550:13          0.000000
560:13          0.000000
570:13          0.000000
580:14      Branch: Return with expression
590:14        'psout' ( temp structure{ temp 4-component vector of float Color})
600:11  Function Definition: main_in_spv( ( temp void)
610:11    Function Parameters:
620:?     Sequence
630:11      Sequence
640:11        move second child to first child ( temp 4-component vector of float)
650:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
660:11          Color: direct index for structure ( temp 4-component vector of float)
670:11            Function Call: @main_in_spv( ( temp structure{ temp 4-component vector of float Color})
680:11            Constant:
690:11              0 (const int)
700:?   Linker Objects
710:?     'anon@0' (layout( row_major std140) uniform block{ uniform int also_not_the_entry_point})
720:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
73
74// Module Version 10000
75// Generated by (magic number): 80007
76// Id's are bound by 32
77
78                              Capability Shader
79               1:             ExtInstImport  "GLSL.std.450"
80                              MemoryModel Logical GLSL450
81                              EntryPoint Fragment 4  "main_in_spv" 26
82                              ExecutionMode 4 OriginUpperLeft
83                              Source HLSL 500
84                              Name 4  "main_in_spv"
85                              Name 6  "not_the_entry_point("
86                              Name 10  "PS_OUTPUT"
87                              MemberName 10(PS_OUTPUT) 0  "Color"
88                              Name 12  "@main_in_spv("
89                              Name 15  "psout"
90                              Name 26  "@entryPointOutput.Color"
91                              Name 29  "$Global"
92                              MemberName 29($Global) 0  "also_not_the_entry_point"
93                              Name 31  ""
94                              Decorate 26(@entryPointOutput.Color) Location 0
95                              MemberDecorate 29($Global) 0 Offset 0
96                              Decorate 29($Global) Block
97                              Decorate 31 DescriptorSet 0
98               2:             TypeVoid
99               3:             TypeFunction 2
100               8:             TypeFloat 32
101               9:             TypeVector 8(float) 4
102   10(PS_OUTPUT):             TypeStruct 9(fvec4)
103              11:             TypeFunction 10(PS_OUTPUT)
104              14:             TypePointer Function 10(PS_OUTPUT)
105              16:             TypeInt 32 1
106              17:     16(int) Constant 0
107              18:    8(float) Constant 0
108              19:    9(fvec4) ConstantComposite 18 18 18 18
109              20:             TypePointer Function 9(fvec4)
110              25:             TypePointer Output 9(fvec4)
11126(@entryPointOutput.Color):     25(ptr) Variable Output
112     29($Global):             TypeStruct 16(int)
113              30:             TypePointer Uniform 29($Global)
114              31:     30(ptr) Variable Uniform
115  4(main_in_spv):           2 Function None 3
116               5:             Label
117              27:10(PS_OUTPUT) FunctionCall 12(@main_in_spv()
118              28:    9(fvec4) CompositeExtract 27 0
119                              Store 26(@entryPointOutput.Color) 28
120                              Return
121                              FunctionEnd
1226(not_the_entry_point():           2 Function None 3
123               7:             Label
124                              Return
125                              FunctionEnd
12612(@main_in_spv():10(PS_OUTPUT) Function None 11
127              13:             Label
128       15(psout):     14(ptr) Variable Function
129              21:     20(ptr) AccessChain 15(psout) 17
130                              Store 21 19
131              22:10(PS_OUTPUT) Load 15(psout)
132                              ReturnValue 22
133                              FunctionEnd
134