1hlsl.mip.operator.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:5  Function Definition: @main( ( temp 4-component vector of float)
60:5    Function Parameters:
70:?     Sequence
80:13      Branch: Return with expression
90:9        add ( temp 4-component vector of float)
100:6          add ( temp 4-component vector of float)
110:?             textureFetch ( temp 4-component vector of float)
120:6              'g_tTex2df4' ( uniform texture2D)
130:?               Constant:
140:?                 3 (const uint)
150:?                 4 (const uint)
160:6              Constant:
170:6                2 (const int)
180:?             textureFetch ( temp 4-component vector of float)
190:9              'g_tTex2df4a' ( uniform texture2DArray)
200:?               Constant:
210:?                 6 (const uint)
220:?                 7 (const uint)
230:?                 8 (const uint)
240:9              Constant:
250:9                5 (const uint)
260:13          textureFetch ( temp 4-component vector of float)
270:13            'g_tTex2df4' ( uniform texture2D)
280:13            Convert float to uint ( temp 2-component vector of uint)
290:13              vector swizzle ( temp 2-component vector of float)
300:?                 textureFetch ( temp 4-component vector of float)
310:13                  'g_tTex2df4' ( uniform texture2D)
320:?                   Constant:
330:?                     14 (const uint)
340:?                     15 (const uint)
350:13                  Constant:
360:13                    13 (const int)
370:13                Sequence
380:13                  Constant:
390:13                    0 (const int)
400:13                  Constant:
410:13                    1 (const int)
420:13            Convert float to uint ( temp uint)
430:13              direct index ( temp float)
440:?                 textureFetch ( temp 4-component vector of float)
450:13                  'g_tTex2df4' ( uniform texture2D)
460:?                   Constant:
470:?                     10 (const uint)
480:?                     11 (const uint)
490:13                  Constant:
500:13                    9 (const int)
510:13                Constant:
520:13                  0 (const int)
530:5  Function Definition: main( ( temp void)
540:5    Function Parameters:
550:?     Sequence
560:5      move second child to first child ( temp 4-component vector of float)
570:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
580:5        Function Call: @main( ( temp 4-component vector of float)
590:?   Linker Objects
600:?     'g_tTex2df4a' ( uniform texture2DArray)
610:?     'g_tTex2df4' ( uniform texture2D)
620:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
63
64
65Linked fragment stage:
66
67
68Shader version: 500
69gl_FragCoord origin is upper left
700:? Sequence
710:5  Function Definition: @main( ( temp 4-component vector of float)
720:5    Function Parameters:
730:?     Sequence
740:13      Branch: Return with expression
750:9        add ( temp 4-component vector of float)
760:6          add ( temp 4-component vector of float)
770:?             textureFetch ( temp 4-component vector of float)
780:6              'g_tTex2df4' ( uniform texture2D)
790:?               Constant:
800:?                 3 (const uint)
810:?                 4 (const uint)
820:6              Constant:
830:6                2 (const int)
840:?             textureFetch ( temp 4-component vector of float)
850:9              'g_tTex2df4a' ( uniform texture2DArray)
860:?               Constant:
870:?                 6 (const uint)
880:?                 7 (const uint)
890:?                 8 (const uint)
900:9              Constant:
910:9                5 (const uint)
920:13          textureFetch ( temp 4-component vector of float)
930:13            'g_tTex2df4' ( uniform texture2D)
940:13            Convert float to uint ( temp 2-component vector of uint)
950:13              vector swizzle ( temp 2-component vector of float)
960:?                 textureFetch ( temp 4-component vector of float)
970:13                  'g_tTex2df4' ( uniform texture2D)
980:?                   Constant:
990:?                     14 (const uint)
1000:?                     15 (const uint)
1010:13                  Constant:
1020:13                    13 (const int)
1030:13                Sequence
1040:13                  Constant:
1050:13                    0 (const int)
1060:13                  Constant:
1070:13                    1 (const int)
1080:13            Convert float to uint ( temp uint)
1090:13              direct index ( temp float)
1100:?                 textureFetch ( temp 4-component vector of float)
1110:13                  'g_tTex2df4' ( uniform texture2D)
1120:?                   Constant:
1130:?                     10 (const uint)
1140:?                     11 (const uint)
1150:13                  Constant:
1160:13                    9 (const int)
1170:13                Constant:
1180:13                  0 (const int)
1190:5  Function Definition: main( ( temp void)
1200:5    Function Parameters:
1210:?     Sequence
1220:5      move second child to first child ( temp 4-component vector of float)
1230:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1240:5        Function Call: @main( ( temp 4-component vector of float)
1250:?   Linker Objects
1260:?     'g_tTex2df4a' ( uniform texture2DArray)
1270:?     'g_tTex2df4' ( uniform texture2D)
1280:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
129
130// Module Version 10000
131// Generated by (magic number): 80007
132// Id's are bound by 61
133
134                              Capability Shader
135               1:             ExtInstImport  "GLSL.std.450"
136                              MemoryModel Logical GLSL450
137                              EntryPoint Fragment 4  "main" 59
138                              ExecutionMode 4 OriginUpperLeft
139                              Source HLSL 500
140                              Name 4  "main"
141                              Name 9  "@main("
142                              Name 13  "g_tTex2df4"
143                              Name 25  "g_tTex2df4a"
144                              Name 59  "@entryPointOutput"
145                              Decorate 13(g_tTex2df4) DescriptorSet 0
146                              Decorate 13(g_tTex2df4) Binding 0
147                              Decorate 25(g_tTex2df4a) DescriptorSet 0
148                              Decorate 25(g_tTex2df4a) Binding 0
149                              Decorate 59(@entryPointOutput) Location 0
150               2:             TypeVoid
151               3:             TypeFunction 2
152               6:             TypeFloat 32
153               7:             TypeVector 6(float) 4
154               8:             TypeFunction 7(fvec4)
155              11:             TypeImage 6(float) 2D sampled format:Unknown
156              12:             TypePointer UniformConstant 11
157  13(g_tTex2df4):     12(ptr) Variable UniformConstant
158              15:             TypeInt 32 0
159              16:             TypeVector 15(int) 2
160              17:     15(int) Constant 3
161              18:     15(int) Constant 4
162              19:   16(ivec2) ConstantComposite 17 18
163              20:             TypeInt 32 1
164              21:     20(int) Constant 2
165              23:             TypeImage 6(float) 2D array sampled format:Unknown
166              24:             TypePointer UniformConstant 23
167 25(g_tTex2df4a):     24(ptr) Variable UniformConstant
168              27:             TypeVector 15(int) 3
169              28:     15(int) Constant 6
170              29:     15(int) Constant 7
171              30:     15(int) Constant 8
172              31:   27(ivec3) ConstantComposite 28 29 30
173              32:     15(int) Constant 5
174              37:     15(int) Constant 14
175              38:     15(int) Constant 15
176              39:   16(ivec2) ConstantComposite 37 38
177              40:     20(int) Constant 13
178              42:             TypeVector 6(float) 2
179              46:     15(int) Constant 10
180              47:     15(int) Constant 11
181              48:   16(ivec2) ConstantComposite 46 47
182              49:     20(int) Constant 9
183              51:     15(int) Constant 0
184              58:             TypePointer Output 7(fvec4)
18559(@entryPointOutput):     58(ptr) Variable Output
186         4(main):           2 Function None 3
187               5:             Label
188              60:    7(fvec4) FunctionCall 9(@main()
189                              Store 59(@entryPointOutput) 60
190                              Return
191                              FunctionEnd
192       9(@main():    7(fvec4) Function None 8
193              10:             Label
194              14:          11 Load 13(g_tTex2df4)
195              22:    7(fvec4) ImageFetch 14 19 Lod 21
196              26:          23 Load 25(g_tTex2df4a)
197              33:    7(fvec4) ImageFetch 26 31 Lod 32
198              34:    7(fvec4) FAdd 22 33
199              35:          11 Load 13(g_tTex2df4)
200              36:          11 Load 13(g_tTex2df4)
201              41:    7(fvec4) ImageFetch 36 39 Lod 40
202              43:   42(fvec2) VectorShuffle 41 41 0 1
203              44:   16(ivec2) ConvertFToU 43
204              45:          11 Load 13(g_tTex2df4)
205              50:    7(fvec4) ImageFetch 45 48 Lod 49
206              52:    6(float) CompositeExtract 50 0
207              53:     15(int) ConvertFToU 52
208              54:    7(fvec4) ImageFetch 35 44 Lod 53
209              55:    7(fvec4) FAdd 34 54
210                              ReturnValue 55
211                              FunctionEnd
212