1hlsl.sample.dx9.vert
2Shader version: 500
30:? Sequence
40:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float Pos})
50:11    Function Parameters: 
60:?     Sequence
70:14      Sequence
80:14        move second child to first child ( temp 4-component vector of float)
90:14          'PosOut' ( temp 4-component vector of float)
100:14          Constant:
110:14            0.000000
120:14            0.000000
130:14            0.000000
140:14            0.000000
150:16      add second child into first child ( temp 4-component vector of float)
160:16        'PosOut' ( temp 4-component vector of float)
170:16        textureLod ( temp 4-component vector of float)
180:16          'g_sam' (layout( binding=0) uniform sampler2D)
190:16          Construct vec2 ( temp 2-component vector of float)
200:16            Constant:
210:16              0.300000
220:16              0.400000
230:16              0.000000
240:16              1.000000
250:16          direct index ( temp float)
260:16            Constant:
270:16              0.300000
280:16              0.400000
290:16              0.000000
300:16              1.000000
310:16            Constant:
320:16              3 (const int)
330:17      add second child into first child ( temp 4-component vector of float)
340:17        'PosOut' ( temp 4-component vector of float)
350:17        textureLod ( temp 4-component vector of float)
360:17          'g_sam2D' (layout( binding=1) uniform sampler2D)
370:17          Construct vec2 ( temp 2-component vector of float)
380:17            Constant:
390:17              0.500000
400:17              0.600000
410:17              0.000000
420:17              1.000000
430:17          direct index ( temp float)
440:17            Constant:
450:17              0.500000
460:17              0.600000
470:17              0.000000
480:17              1.000000
490:17            Constant:
500:17              3 (const int)
510:19      move second child to first child ( temp 4-component vector of float)
520:19        Pos: direct index for structure ( temp 4-component vector of float)
530:19          'vsout' ( temp structure{ temp 4-component vector of float Pos})
540:19          Constant:
550:19            0 (const int)
560:19        divide ( temp 4-component vector of float)
570:19          'PosOut' ( temp 4-component vector of float)
580:19          Constant:
590:19            2.000000
600:21      Branch: Return with expression
610:21        'vsout' ( temp structure{ temp 4-component vector of float Pos})
620:11  Function Definition: main( ( temp void)
630:11    Function Parameters: 
640:?     Sequence
650:11      Sequence
660:11        move second child to first child ( temp 4-component vector of float)
670:?           '@entryPointOutput.Pos' ( out 4-component vector of float Position)
680:11          Pos: direct index for structure ( temp 4-component vector of float)
690:11            Function Call: @main( ( temp structure{ temp 4-component vector of float Pos})
700:11            Constant:
710:11              0 (const int)
720:?   Linker Objects
730:?     'g_sam' (layout( binding=0) uniform sampler2D)
740:?     'g_sam2D' (layout( binding=1) uniform sampler2D)
750:?     '@entryPointOutput.Pos' ( out 4-component vector of float Position)
76
77
78Linked vertex stage:
79
80
81Shader version: 500
820:? Sequence
830:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float Pos})
840:11    Function Parameters: 
850:?     Sequence
860:14      Sequence
870:14        move second child to first child ( temp 4-component vector of float)
880:14          'PosOut' ( temp 4-component vector of float)
890:14          Constant:
900:14            0.000000
910:14            0.000000
920:14            0.000000
930:14            0.000000
940:16      add second child into first child ( temp 4-component vector of float)
950:16        'PosOut' ( temp 4-component vector of float)
960:16        textureLod ( temp 4-component vector of float)
970:16          'g_sam' (layout( binding=0) uniform sampler2D)
980:16          Construct vec2 ( temp 2-component vector of float)
990:16            Constant:
1000:16              0.300000
1010:16              0.400000
1020:16              0.000000
1030:16              1.000000
1040:16          direct index ( temp float)
1050:16            Constant:
1060:16              0.300000
1070:16              0.400000
1080:16              0.000000
1090:16              1.000000
1100:16            Constant:
1110:16              3 (const int)
1120:17      add second child into first child ( temp 4-component vector of float)
1130:17        'PosOut' ( temp 4-component vector of float)
1140:17        textureLod ( temp 4-component vector of float)
1150:17          'g_sam2D' (layout( binding=1) uniform sampler2D)
1160:17          Construct vec2 ( temp 2-component vector of float)
1170:17            Constant:
1180:17              0.500000
1190:17              0.600000
1200:17              0.000000
1210:17              1.000000
1220:17          direct index ( temp float)
1230:17            Constant:
1240:17              0.500000
1250:17              0.600000
1260:17              0.000000
1270:17              1.000000
1280:17            Constant:
1290:17              3 (const int)
1300:19      move second child to first child ( temp 4-component vector of float)
1310:19        Pos: direct index for structure ( temp 4-component vector of float)
1320:19          'vsout' ( temp structure{ temp 4-component vector of float Pos})
1330:19          Constant:
1340:19            0 (const int)
1350:19        divide ( temp 4-component vector of float)
1360:19          'PosOut' ( temp 4-component vector of float)
1370:19          Constant:
1380:19            2.000000
1390:21      Branch: Return with expression
1400:21        'vsout' ( temp structure{ temp 4-component vector of float Pos})
1410:11  Function Definition: main( ( temp void)
1420:11    Function Parameters: 
1430:?     Sequence
1440:11      Sequence
1450:11        move second child to first child ( temp 4-component vector of float)
1460:?           '@entryPointOutput.Pos' ( out 4-component vector of float Position)
1470:11          Pos: direct index for structure ( temp 4-component vector of float)
1480:11            Function Call: @main( ( temp structure{ temp 4-component vector of float Pos})
1490:11            Constant:
1500:11              0 (const int)
1510:?   Linker Objects
1520:?     'g_sam' (layout( binding=0) uniform sampler2D)
1530:?     'g_sam2D' (layout( binding=1) uniform sampler2D)
1540:?     '@entryPointOutput.Pos' ( out 4-component vector of float Position)
155
156// Module Version 10000
157// Generated by (magic number): 8000b
158// Id's are bound by 64
159
160                              Capability Shader
161               2:             ExtInstImport  "GLSL.std.450"
162                              MemoryModel Logical GLSL450
163                              EntryPoint Vertex 5  "main" 61
164               1:             String  ""
165                              Source HLSL 500 1  "// OpModuleProcessed auto-map-locations
166// OpModuleProcessed auto-map-bindings
167// OpModuleProcessed entry-point main
168// OpModuleProcessed client vulkan100
169// OpModuleProcessed target-env vulkan1.0
170// OpModuleProcessed keep-uncalled
171// OpModuleProcessed hlsl-offsets
172#line 1
173"
174                              Name 5  "main"
175                              Name 9  "VS_OUTPUT"
176                              MemberName 9(VS_OUTPUT) 0  "Pos"
177                              Name 11  "@main("
178                              Name 14  "PosOut"
179                              Name 20  "g_sam"
180                              Name 36  "g_sam2D"
181                              Name 49  "vsout"
182                              Name 61  "@entryPointOutput.Pos"
183                              Decorate 20(g_sam) DescriptorSet 0
184                              Decorate 20(g_sam) Binding 0
185                              Decorate 36(g_sam2D) DescriptorSet 0
186                              Decorate 36(g_sam2D) Binding 1
187                              Decorate 61(@entryPointOutput.Pos) BuiltIn Position
188               3:             TypeVoid
189               4:             TypeFunction 3
190               7:             TypeFloat 32
191               8:             TypeVector 7(float) 4
192    9(VS_OUTPUT):             TypeStruct 8(fvec4)
193              10:             TypeFunction 9(VS_OUTPUT)
194              13:             TypePointer Function 8(fvec4)
195              15:    7(float) Constant 0
196              16:    8(fvec4) ConstantComposite 15 15 15 15
197              17:             TypeImage 7(float) 2D sampled format:Unknown
198              18:             TypeSampledImage 17
199              19:             TypePointer UniformConstant 18
200       20(g_sam):     19(ptr) Variable UniformConstant
201              22:    7(float) Constant 1050253722
202              23:    7(float) Constant 1053609165
203              24:    7(float) Constant 1065353216
204              25:    8(fvec4) ConstantComposite 22 23 15 24
205              26:             TypeVector 7(float) 2
206              30:             TypeInt 32 0
207              31:     30(int) Constant 3
208     36(g_sam2D):     19(ptr) Variable UniformConstant
209              38:    7(float) Constant 1056964608
210              39:    7(float) Constant 1058642330
211              40:    8(fvec4) ConstantComposite 38 39 15 24
212              48:             TypePointer Function 9(VS_OUTPUT)
213              50:             TypeInt 32 1
214              51:     50(int) Constant 0
215              53:    7(float) Constant 1073741824
216              60:             TypePointer Output 8(fvec4)
21761(@entryPointOutput.Pos):     60(ptr) Variable Output
218                              Line 1 11 1
219         5(main):           3 Function None 4
220               6:             Label
221                              Line 1 11 0
222              62:9(VS_OUTPUT) FunctionCall 11(@main()
223              63:    8(fvec4) CompositeExtract 62 0
224                              Store 61(@entryPointOutput.Pos) 63
225                              Return
226                              FunctionEnd
227                              Line 1 11 1
228      11(@main():9(VS_OUTPUT) Function None 10
229              12:             Label
230      14(PosOut):     13(ptr) Variable Function
231       49(vsout):     48(ptr) Variable Function
232                              Line 1 14 0
233                              Store 14(PosOut) 16
234                              Line 1 16 0
235              21:          18 Load 20(g_sam)
236              27:    7(float) CompositeExtract 25 0
237              28:    7(float) CompositeExtract 25 1
238              29:   26(fvec2) CompositeConstruct 27 28
239              32:    7(float) CompositeExtract 25 3
240              33:    8(fvec4) ImageSampleExplicitLod 21 29 Lod 32
241              34:    8(fvec4) Load 14(PosOut)
242              35:    8(fvec4) FAdd 34 33
243                              Store 14(PosOut) 35
244                              Line 1 17 0
245              37:          18 Load 36(g_sam2D)
246              41:    7(float) CompositeExtract 40 0
247              42:    7(float) CompositeExtract 40 1
248              43:   26(fvec2) CompositeConstruct 41 42
249              44:    7(float) CompositeExtract 40 3
250              45:    8(fvec4) ImageSampleExplicitLod 37 43 Lod 44
251              46:    8(fvec4) Load 14(PosOut)
252              47:    8(fvec4) FAdd 46 45
253                              Store 14(PosOut) 47
254                              Line 1 19 0
255              52:    8(fvec4) Load 14(PosOut)
256              54:    8(fvec4) CompositeConstruct 53 53 53 53
257              55:    8(fvec4) FDiv 52 54
258              56:     13(ptr) AccessChain 49(vsout) 51
259                              Store 56 55
260                              Line 1 21 0
261              57:9(VS_OUTPUT) Load 49(vsout)
262                              ReturnValue 57
263                              FunctionEnd
264