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): 8000a
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 18 Binding 0
154                              Decorate 44(@entryPointOutput.pos) BuiltIn Position
155                              Decorate 47(@entryPointOutput.somethingelse) Location 0
156               2:             TypeVoid
157               3:             TypeFunction 2
158               6:             TypeFloat 32
159               7:             TypeVector 6(float) 4
160               8:             TypeInt 32 1
161       9(VS_OUT):             TypeStruct 7(fvec4) 8(int)
162              10:             TypeFunction 9(VS_OUT)
163              13:             TypePointer Function 9(VS_OUT)
164              15:      8(int) Constant 0
165     16($Global):             TypeStruct 7(fvec4)
166              17:             TypePointer Uniform 16($Global)
167              18:     17(ptr) Variable Uniform
168              19:             TypePointer Uniform 7(fvec4)
169              22:             TypePointer Function 7(fvec4)
170              24:      8(int) Constant 1
171              25:      8(int) Constant 42
172              26:             TypePointer Function 8(int)
173              36:             TypeInt 32 0
174              37:     36(int) Constant 1
175              38:             TypePointer Function 6(float)
176              43:             TypePointer Output 7(fvec4)
17744(@entryPointOutput.pos):     43(ptr) Variable Output
178              46:             TypePointer Output 8(int)
17947(@entryPointOutput.somethingelse):     46(ptr) Variable Output
180         4(main):           2 Function None 3
181               5:             Label
182 31(flattenTemp):     13(ptr) Variable Function
183   33(@position):     22(ptr) Variable Function
184              32:   9(VS_OUT) FunctionCall 11(@main()
185                              Store 31(flattenTemp) 32
186              34:     22(ptr) AccessChain 31(flattenTemp) 15
187              35:    7(fvec4) Load 34
188                              Store 33(@position) 35
189              39:     38(ptr) AccessChain 33(@position) 37
190              40:    6(float) Load 39
191              41:    6(float) FNegate 40
192              42:     38(ptr) AccessChain 33(@position) 37
193                              Store 42 41
194              45:    7(fvec4) Load 33(@position)
195                              Store 44(@entryPointOutput.pos) 45
196              48:     26(ptr) AccessChain 31(flattenTemp) 24
197              49:      8(int) Load 48
198                              Store 47(@entryPointOutput.somethingelse) 49
199                              Return
200                              FunctionEnd
201      11(@main():   9(VS_OUT) Function None 10
202              12:             Label
203       14(vsout):     13(ptr) Variable Function
204              20:     19(ptr) AccessChain 18 15
205              21:    7(fvec4) Load 20
206              23:     22(ptr) AccessChain 14(vsout) 15
207                              Store 23 21
208              27:     26(ptr) AccessChain 14(vsout) 24
209                              Store 27 25
210              28:   9(VS_OUT) Load 14(vsout)
211                              ReturnValue 28
212                              FunctionEnd
213