1hlsl.partialFlattenMixed.vert
2WARNING: AST will form illegal SPIR-V; need to transform to legalize
3Shader version: 500
40:? Sequence
50:10  Function Definition: @main(vf4; ( temp 4-component vector of float)
60:10    Function Parameters:
70:10      'pos' ( in 4-component vector of float)
80:?     Sequence
90:13      Sequence
100:13        move second child to first child ( temp texture2D)
110:13          direct index ( temp texture2D)
120:13            membTex: direct index for structure ( temp 2-element array of texture2D)
130:13              'packed' ( temp structure{ temp int a,  temp 2-element array of texture2D membTex,  temp int b})
140:13              Constant:
150:13                1 (const int)
160:13            Constant:
170:13              0 (const int)
180:?           'tex[0]' ( uniform texture2D)
190:13        move second child to first child ( temp texture2D)
200:13          direct index ( temp texture2D)
210:13            membTex: direct index for structure ( temp 2-element array of texture2D)
220:13              'packed' ( temp structure{ temp int a,  temp 2-element array of texture2D membTex,  temp int b})
230:13              Constant:
240:13                1 (const int)
250:13            Constant:
260:13              1 (const int)
270:?           'tex[1]' ( uniform texture2D)
280:15      Branch: Return with expression
290:15        'pos' ( in 4-component vector of float)
300:10  Function Definition: main( ( temp void)
310:10    Function Parameters:
320:?     Sequence
330:10      move second child to first child ( temp 4-component vector of float)
340:?         'pos' ( temp 4-component vector of float)
350:?         'pos' (layout( location=0) in 4-component vector of float)
360:10      move second child to first child ( temp 4-component vector of float)
370:?         '@entryPointOutput' ( out 4-component vector of float Position)
380:10        Function Call: @main(vf4; ( temp 4-component vector of float)
390:?           'pos' ( temp 4-component vector of float)
400:?   Linker Objects
410:?     'tex[0]' ( uniform texture2D)
420:?     'tex[1]' ( uniform texture2D)
430:?     '@entryPointOutput' ( out 4-component vector of float Position)
440:?     'pos' (layout( location=0) in 4-component vector of float)
45
46
47Linked vertex stage:
48
49
50Shader version: 500
510:? Sequence
520:10  Function Definition: @main(vf4; ( temp 4-component vector of float)
530:10    Function Parameters:
540:10      'pos' ( in 4-component vector of float)
550:?     Sequence
560:13      Sequence
570:13        move second child to first child ( temp texture2D)
580:13          direct index ( temp texture2D)
590:13            membTex: direct index for structure ( temp 2-element array of texture2D)
600:13              'packed' ( temp structure{ temp int a,  temp 2-element array of texture2D membTex,  temp int b})
610:13              Constant:
620:13                1 (const int)
630:13            Constant:
640:13              0 (const int)
650:?           'tex[0]' ( uniform texture2D)
660:13        move second child to first child ( temp texture2D)
670:13          direct index ( temp texture2D)
680:13            membTex: direct index for structure ( temp 2-element array of texture2D)
690:13              'packed' ( temp structure{ temp int a,  temp 2-element array of texture2D membTex,  temp int b})
700:13              Constant:
710:13                1 (const int)
720:13            Constant:
730:13              1 (const int)
740:?           'tex[1]' ( uniform texture2D)
750:15      Branch: Return with expression
760:15        'pos' ( in 4-component vector of float)
770:10  Function Definition: main( ( temp void)
780:10    Function Parameters:
790:?     Sequence
800:10      move second child to first child ( temp 4-component vector of float)
810:?         'pos' ( temp 4-component vector of float)
820:?         'pos' (layout( location=0) in 4-component vector of float)
830:10      move second child to first child ( temp 4-component vector of float)
840:?         '@entryPointOutput' ( out 4-component vector of float Position)
850:10        Function Call: @main(vf4; ( temp 4-component vector of float)
860:?           'pos' ( temp 4-component vector of float)
870:?   Linker Objects
880:?     'tex[0]' ( uniform texture2D)
890:?     'tex[1]' ( uniform texture2D)
900:?     '@entryPointOutput' ( out 4-component vector of float Position)
910:?     'pos' (layout( location=0) in 4-component vector of float)
92
93// Module Version 10000
94// Generated by (magic number): 80007
95// Id's are bound by 43
96
97                              Capability Shader
98               1:             ExtInstImport  "GLSL.std.450"
99                              MemoryModel Logical GLSL450
100                              EntryPoint Vertex 4  "main" 36 39
101                              Source HLSL 500
102                              Name 4  "main"
103                              Name 11  "@main(vf4;"
104                              Name 10  "pos"
105                              Name 18  "Packed"
106                              MemberName 18(Packed) 0  "a"
107                              MemberName 18(Packed) 1  "membTex"
108                              MemberName 18(Packed) 2  "b"
109                              Name 20  "packed"
110                              Name 24  "tex[0]"
111                              Name 28  "tex[1]"
112                              Name 34  "pos"
113                              Name 36  "pos"
114                              Name 39  "@entryPointOutput"
115                              Name 40  "param"
116                              Decorate 24(tex[0]) DescriptorSet 0
117                              Decorate 28(tex[1]) DescriptorSet 0
118                              Decorate 36(pos) Location 0
119                              Decorate 39(@entryPointOutput) BuiltIn Position
120               2:             TypeVoid
121               3:             TypeFunction 2
122               6:             TypeFloat 32
123               7:             TypeVector 6(float) 4
124               8:             TypePointer Function 7(fvec4)
125               9:             TypeFunction 7(fvec4) 8(ptr)
126              13:             TypeInt 32 1
127              14:             TypeImage 6(float) 2D sampled format:Unknown
128              15:             TypeInt 32 0
129              16:     15(int) Constant 2
130              17:             TypeArray 14 16
131      18(Packed):             TypeStruct 13(int) 17 13(int)
132              19:             TypePointer Function 18(Packed)
133              21:     13(int) Constant 1
134              22:     13(int) Constant 0
135              23:             TypePointer UniformConstant 14
136      24(tex[0]):     23(ptr) Variable UniformConstant
137              26:             TypePointer Function 14
138      28(tex[1]):     23(ptr) Variable UniformConstant
139              35:             TypePointer Input 7(fvec4)
140         36(pos):     35(ptr) Variable Input
141              38:             TypePointer Output 7(fvec4)
14239(@entryPointOutput):     38(ptr) Variable Output
143         4(main):           2 Function None 3
144               5:             Label
145         34(pos):      8(ptr) Variable Function
146       40(param):      8(ptr) Variable Function
147              37:    7(fvec4) Load 36(pos)
148                              Store 34(pos) 37
149              41:    7(fvec4) Load 34(pos)
150                              Store 40(param) 41
151              42:    7(fvec4) FunctionCall 11(@main(vf4;) 40(param)
152                              Store 39(@entryPointOutput) 42
153                              Return
154                              FunctionEnd
155  11(@main(vf4;):    7(fvec4) Function None 9
156         10(pos):      8(ptr) FunctionParameter
157              12:             Label
158      20(packed):     19(ptr) Variable Function
159              25:          14 Load 24(tex[0])
160              27:     26(ptr) AccessChain 20(packed) 21 22
161                              Store 27 25
162              29:          14 Load 28(tex[1])
163              30:     26(ptr) AccessChain 20(packed) 21 21
164                              Store 30 29
165              31:    7(fvec4) Load 10(pos)
166                              ReturnValue 31
167                              FunctionEnd
168