• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:?           Constant:
110:?             0.000000
120:?             0.000000
130:?             0.000000
140:?             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:?             Constant:
210:?               0.300000
220:?               0.400000
230:?               0.000000
240:?               1.000000
250:16          direct index ( temp float)
260:?             Constant:
270:?               0.300000
280:?               0.400000
290:?               0.000000
300:?               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:?             Constant:
390:?               0.500000
400:?               0.600000
410:?               0.000000
420:?               1.000000
430:17          direct index ( temp float)
440:?             Constant:
450:?               0.500000
460:?               0.600000
470:?               0.000000
480:?               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:?           Constant:
900:?             0.000000
910:?             0.000000
920:?             0.000000
930:?             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:?             Constant:
1000:?               0.300000
1010:?               0.400000
1020:?               0.000000
1030:?               1.000000
1040:16          direct index ( temp float)
1050:?             Constant:
1060:?               0.300000
1070:?               0.400000
1080:?               0.000000
1090:?               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:?             Constant:
1180:?               0.500000
1190:?               0.600000
1200:?               0.000000
1210:?               1.000000
1220:17          direct index ( temp float)
1230:?             Constant:
1240:?               0.500000
1250:?               0.600000
1260:?               0.000000
1270:?               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): 80007
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         5(main):           3 Function None 4
219               6:             Label
220                              Line 1 11 0
221              62:9(VS_OUTPUT) FunctionCall 11(@main()
222              63:    8(fvec4) CompositeExtract 62 0
223                              Store 61(@entryPointOutput.Pos) 63
224                              Return
225                              FunctionEnd
226      11(@main():9(VS_OUTPUT) Function None 10
227              12:             Label
228      14(PosOut):     13(ptr) Variable Function
229       49(vsout):     48(ptr) Variable Function
230                              Line 1 14 0
231                              Store 14(PosOut) 16
232                              Line 1 16 0
233              21:          18 Load 20(g_sam)
234              27:    7(float) CompositeExtract 25 0
235              28:    7(float) CompositeExtract 25 1
236              29:   26(fvec2) CompositeConstruct 27 28
237              32:    7(float) CompositeExtract 25 3
238              33:    8(fvec4) ImageSampleExplicitLod 21 29 Lod 32
239              34:    8(fvec4) Load 14(PosOut)
240              35:    8(fvec4) FAdd 34 33
241                              Store 14(PosOut) 35
242                              Line 1 17 0
243              37:          18 Load 36(g_sam2D)
244              41:    7(float) CompositeExtract 40 0
245              42:    7(float) CompositeExtract 40 1
246              43:   26(fvec2) CompositeConstruct 41 42
247              44:    7(float) CompositeExtract 40 3
248              45:    8(fvec4) ImageSampleExplicitLod 37 43 Lod 44
249              46:    8(fvec4) Load 14(PosOut)
250              47:    8(fvec4) FAdd 46 45
251                              Store 14(PosOut) 47
252                              Line 1 19 0
253              52:    8(fvec4) Load 14(PosOut)
254              54:    8(fvec4) CompositeConstruct 53 53 53 53
255              55:    8(fvec4) FDiv 52 54
256              56:     13(ptr) AccessChain 49(vsout) 51
257                              Store 56 55
258                              Line 1 21 0
259              57:9(VS_OUTPUT) Load 49(vsout)
260                              ReturnValue 57
261                              FunctionEnd
262