yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Sajjad MirzaFix a call site that had an incorrect number of arguments.36b4d078

main
10.6 KiB246 linesraw
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 63
159
160                              Capability Shader
161               1:             ExtInstImport  "GLSL.std.450"
162                              MemoryModel Logical GLSL450
163                              EntryPoint Vertex 4  "main" 60
164                              Source HLSL 500
165                              Name 4  "main"
166                              Name 8  "VS_OUTPUT"
167                              MemberName 8(VS_OUTPUT) 0  "Pos"
168                              Name 10  "@main("
169                              Name 13  "PosOut"
170                              Name 19  "g_sam"
171                              Name 35  "g_sam2D"
172                              Name 48  "vsout"
173                              Name 60  "@entryPointOutput.Pos"
174                              Decorate 19(g_sam) Binding 0
175                              Decorate 19(g_sam) DescriptorSet 0
176                              Decorate 35(g_sam2D) Binding 1
177                              Decorate 35(g_sam2D) DescriptorSet 0
178                              Decorate 60(@entryPointOutput.Pos) BuiltIn Position
179               2:             TypeVoid
180               3:             TypeFunction 2
181               6:             TypeFloat 32
182               7:             TypeVector 6(float) 4
183    8(VS_OUTPUT):             TypeStruct 7(fvec4)
184               9:             TypeFunction 8(VS_OUTPUT)
185              12:             TypePointer Function 7(fvec4)
186              14:    6(float) Constant 0
187              15:    7(fvec4) ConstantComposite 14 14 14 14
188              16:             TypeImage 6(float) 2D sampled format:Unknown
189              17:             TypeSampledImage 16
190              18:             TypePointer UniformConstant 17
191       19(g_sam):     18(ptr) Variable UniformConstant
192              21:    6(float) Constant 1050253722
193              22:    6(float) Constant 1053609165
194              23:    6(float) Constant 1065353216
195              24:    7(fvec4) ConstantComposite 21 22 14 23
196              25:             TypeVector 6(float) 2
197              29:             TypeInt 32 0
198              30:     29(int) Constant 3
199     35(g_sam2D):     18(ptr) Variable UniformConstant
200              37:    6(float) Constant 1056964608
201              38:    6(float) Constant 1058642330
202              39:    7(fvec4) ConstantComposite 37 38 14 23
203              47:             TypePointer Function 8(VS_OUTPUT)
204              49:             TypeInt 32 1
205              50:     49(int) Constant 0
206              52:    6(float) Constant 1073741824
207              59:             TypePointer Output 7(fvec4)
20860(@entryPointOutput.Pos):     59(ptr) Variable Output
209         4(main):           2 Function None 3
210               5:             Label
211              61:8(VS_OUTPUT) FunctionCall 10(@main()
212              62:    7(fvec4) CompositeExtract 61 0
213                              Store 60(@entryPointOutput.Pos) 62
214                              Return
215                              FunctionEnd
216      10(@main():8(VS_OUTPUT) Function None 9
217              11:             Label
218      13(PosOut):     12(ptr) Variable Function
219       48(vsout):     47(ptr) Variable Function
220                              Store 13(PosOut) 15
221              20:          17 Load 19(g_sam)
222              26:    6(float) CompositeExtract 24 0
223              27:    6(float) CompositeExtract 24 1
224              28:   25(fvec2) CompositeConstruct 26 27
225              31:    6(float) CompositeExtract 24 3
226              32:    7(fvec4) ImageSampleExplicitLod 20 28 Lod 31
227              33:    7(fvec4) Load 13(PosOut)
228              34:    7(fvec4) FAdd 33 32
229                              Store 13(PosOut) 34
230              36:          17 Load 35(g_sam2D)
231              40:    6(float) CompositeExtract 39 0
232              41:    6(float) CompositeExtract 39 1
233              42:   25(fvec2) CompositeConstruct 40 41
234              43:    6(float) CompositeExtract 39 3
235              44:    7(fvec4) ImageSampleExplicitLod 36 42 Lod 43
236              45:    7(fvec4) Load 13(PosOut)
237              46:    7(fvec4) FAdd 45 44
238                              Store 13(PosOut) 46
239              51:    7(fvec4) Load 13(PosOut)
240              53:    7(fvec4) CompositeConstruct 52 52 52 52
241              54:    7(fvec4) FDiv 51 53
242              55:     12(ptr) AccessChain 48(vsout) 50
243                              Store 55 54
244              56:8(VS_OUTPUT) Load 48(vsout)
245                              ReturnValue 56
246                              FunctionEnd