1hlsl.y-negate-3.vert
2Shader version: 500
30:? Sequence
40:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
50:11    Function Parameters:
60:?     Sequence
70:14      move second child to first child ( temp 4-component vector of float)
80:14        pos: direct index for structure ( temp 4-component vector of float)
90:14          'vsout' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
100:14          Constant:
110:14            0 (const int)
120:14        position: direct index for structure ( uniform 4-component vector of float)
130:14          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float position})
140:14          Constant:
150:14            0 (const uint)
160:15      move second child to first child ( temp int)
170:15        somethingelse: direct index for structure ( temp int)
180:15          'vsout' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
190:15          Constant:
200:15            1 (const int)
210:15        Constant:
220:15          42 (const int)
230:17      Branch: Return with expression
240:17        'vsout' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
250:11  Function Definition: main( ( temp void)
260:11    Function Parameters:
270:?     Sequence
280:11      Sequence
290:11        move second child to first child ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
300:11          'flattenTemp' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
310:11          Function Call: @main( ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
320:11        Sequence
330:11          move second child to first child ( temp 4-component vector of float)
340:11            '@position' ( temp 4-component vector of float)
350:11            pos: direct index for structure ( temp 4-component vector of float)
360:11              'flattenTemp' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
370:11              Constant:
380:11                0 (const int)
390:11          move second child to first child ( temp float)
400:11            direct index ( temp float)
410:11              '@position' ( temp 4-component vector of float)
420:11              Constant:
430:11                1 (const int)
440:11            Negate value ( temp float)
450:11              direct index ( temp float)
460:11                '@position' ( temp 4-component vector of float)
470:11                Constant:
480:11                  1 (const int)
490:11          move second child to first child ( temp 4-component vector of float)
500:?             '@entryPointOutput.pos' ( out 4-component vector of float Position)
510:11            '@position' ( temp 4-component vector of float)
520:11        move second child to first child ( temp int)
530:?           '@entryPointOutput.somethingelse' (layout( location=0) out int)
540:11          somethingelse: direct index for structure ( temp int)
550:11            'flattenTemp' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
560:11            Constant:
570:11              1 (const int)
580:?   Linker Objects
590:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float position})
600:?     '@entryPointOutput.pos' ( out 4-component vector of float Position)
610:?     '@entryPointOutput.somethingelse' (layout( location=0) out int)
62
63
64Linked vertex stage:
65
66
67Shader version: 500
680:? Sequence
690:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
700:11    Function Parameters:
710:?     Sequence
720:14      move second child to first child ( temp 4-component vector of float)
730:14        pos: direct index for structure ( temp 4-component vector of float)
740:14          'vsout' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
750:14          Constant:
760:14            0 (const int)
770:14        position: direct index for structure ( uniform 4-component vector of float)
780:14          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float position})
790:14          Constant:
800:14            0 (const uint)
810:15      move second child to first child ( temp int)
820:15        somethingelse: direct index for structure ( temp int)
830:15          'vsout' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
840:15          Constant:
850:15            1 (const int)
860:15        Constant:
870:15          42 (const int)
880:17      Branch: Return with expression
890:17        'vsout' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
900:11  Function Definition: main( ( temp void)
910:11    Function Parameters:
920:?     Sequence
930:11      Sequence
940:11        move second child to first child ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
950:11          'flattenTemp' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
960:11          Function Call: @main( ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
970:11        Sequence
980:11          move second child to first child ( temp 4-component vector of float)
990:11            '@position' ( temp 4-component vector of float)
1000:11            pos: direct index for structure ( temp 4-component vector of float)
1010:11              'flattenTemp' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
1020:11              Constant:
1030:11                0 (const int)
1040:11          move second child to first child ( temp float)
1050:11            direct index ( temp float)
1060:11              '@position' ( temp 4-component vector of float)
1070:11              Constant:
1080:11                1 (const int)
1090:11            Negate value ( temp float)
1100:11              direct index ( temp float)
1110:11                '@position' ( temp 4-component vector of float)
1120:11                Constant:
1130:11                  1 (const int)
1140:11          move second child to first child ( temp 4-component vector of float)
1150:?             '@entryPointOutput.pos' ( out 4-component vector of float Position)
1160:11            '@position' ( temp 4-component vector of float)
1170:11        move second child to first child ( temp int)
1180:?           '@entryPointOutput.somethingelse' (layout( location=0) out int)
1190:11          somethingelse: direct index for structure ( temp int)
1200:11            'flattenTemp' ( temp structure{ temp 4-component vector of float pos,  temp int somethingelse})
1210:11            Constant:
1220:11              1 (const int)
1230:?   Linker Objects
1240:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float position})
1250:?     '@entryPointOutput.pos' ( out 4-component vector of float Position)
1260:?     '@entryPointOutput.somethingelse' (layout( location=0) out int)
127
128// Module Version 10000
129// Generated by (magic number): 80007
130// Id's are bound by 50
131
132                              Capability Shader
133               1:             ExtInstImport  "GLSL.std.450"
134                              MemoryModel Logical GLSL450
135                              EntryPoint Vertex 4  "main" 44 47
136                              Source HLSL 500
137                              Name 4  "main"
138                              Name 9  "VS_OUT"
139                              MemberName 9(VS_OUT) 0  "pos"
140                              MemberName 9(VS_OUT) 1  "somethingelse"
141                              Name 11  "@main("
142                              Name 14  "vsout"
143                              Name 16  "$Global"
144                              MemberName 16($Global) 0  "position"
145                              Name 18  ""
146                              Name 31  "flattenTemp"
147                              Name 33  "@position"
148                              Name 44  "@entryPointOutput.pos"
149                              Name 47  "@entryPointOutput.somethingelse"
150                              MemberDecorate 16($Global) 0 Offset 0
151                              Decorate 16($Global) Block
152                              Decorate 18 DescriptorSet 0
153                              Decorate 44(@entryPointOutput.pos) BuiltIn Position
154                              Decorate 47(@entryPointOutput.somethingelse) Location 0
155               2:             TypeVoid
156               3:             TypeFunction 2
157               6:             TypeFloat 32
158               7:             TypeVector 6(float) 4
159               8:             TypeInt 32 1
160       9(VS_OUT):             TypeStruct 7(fvec4) 8(int)
161              10:             TypeFunction 9(VS_OUT)
162              13:             TypePointer Function 9(VS_OUT)
163              15:      8(int) Constant 0
164     16($Global):             TypeStruct 7(fvec4)
165              17:             TypePointer Uniform 16($Global)
166              18:     17(ptr) Variable Uniform
167              19:             TypePointer Uniform 7(fvec4)
168              22:             TypePointer Function 7(fvec4)
169              24:      8(int) Constant 1
170              25:      8(int) Constant 42
171              26:             TypePointer Function 8(int)
172              36:             TypeInt 32 0
173              37:     36(int) Constant 1
174              38:             TypePointer Function 6(float)
175              43:             TypePointer Output 7(fvec4)
17644(@entryPointOutput.pos):     43(ptr) Variable Output
177              46:             TypePointer Output 8(int)
17847(@entryPointOutput.somethingelse):     46(ptr) Variable Output
179         4(main):           2 Function None 3
180               5:             Label
181 31(flattenTemp):     13(ptr) Variable Function
182   33(@position):     22(ptr) Variable Function
183              32:   9(VS_OUT) FunctionCall 11(@main()
184                              Store 31(flattenTemp) 32
185              34:     22(ptr) AccessChain 31(flattenTemp) 15
186              35:    7(fvec4) Load 34
187                              Store 33(@position) 35
188              39:     38(ptr) AccessChain 33(@position) 37
189              40:    6(float) Load 39
190              41:    6(float) FNegate 40
191              42:     38(ptr) AccessChain 33(@position) 37
192                              Store 42 41
193              45:    7(fvec4) Load 33(@position)
194                              Store 44(@entryPointOutput.pos) 45
195              48:     26(ptr) AccessChain 31(flattenTemp) 24
196              49:      8(int) Load 48
197                              Store 47(@entryPointOutput.somethingelse) 49
198                              Return
199                              FunctionEnd
200      11(@main():   9(VS_OUT) Function None 10
201              12:             Label
202       14(vsout):     13(ptr) Variable Function
203              20:     19(ptr) AccessChain 18 15
204              21:    7(fvec4) Load 20
205              23:     22(ptr) AccessChain 14(vsout) 15
206                              Store 23 21
207              27:     26(ptr) AccessChain 14(vsout) 24
208                              Store 27 25
209              28:   9(VS_OUT) Load 14(vsout)
210                              ReturnValue 28
211                              FunctionEnd
212