• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1link1.vk.frag
2Shader version: 450
3gl_FragCoord origin is upper left
40:? Sequence
50:16  Function Definition: main( ( global void)
60:16    Function Parameters:
70:18    Sequence
80:18      move second child to first child ( temp highp 4-component vector of float)
90:18        'color' (layout( location=0) out highp 4-component vector of float)
100:18        Function Call: getColor( ( global highp 4-component vector of float)
110:20      move second child to first child ( temp highp int)
120:20        direct index ( temp highp int)
130:20          'a1' ( global unsized 9-element array of highp int)
140:20          Constant:
150:20            8 (const int)
160:20        Constant:
170:20          1 (const int)
180:21      move second child to first child ( temp highp int)
190:21        direct index ( temp highp int)
200:21          'a2' ( global unsized 2-element array of highp int)
210:21          Constant:
220:21            1 (const int)
230:21        Constant:
240:21          1 (const int)
250:22      move second child to first child ( temp highp int)
260:22        indirect index ( temp highp int)
270:22          'b' ( global 5-element array of highp int)
280:22          'i' ( global highp int)
290:22        Constant:
300:22          1 (const int)
310:23      move second child to first child ( temp highp int)
320:23        direct index ( temp highp int)
330:23          'c' ( global unsized 4-element array of highp int)
340:23          Constant:
350:23            3 (const int)
360:23        Constant:
370:23          1 (const int)
380:?   Linker Objects
390:?     'color' (layout( location=0) out highp 4-component vector of float)
400:?     'a1' ( global unsized 9-element array of highp int)
410:?     'a2' ( global unsized 2-element array of highp int)
420:?     'b' ( global 5-element array of highp int)
430:?     'c' ( global unsized 4-element array of highp int)
440:?     'i' ( global highp int)
450:?     'anon@0' (layout( column_major std430) buffer block{layout( column_major std430) buffer unsized 1-element array of highp float r})
460:?     'anon@1' (layout( column_major std430) buffer block{layout( column_major std430) buffer unsized 1-element array of highp float m})
47
48link2.vk.frag
49Shader version: 450
50gl_FragCoord origin is upper left
510:? Sequence
520:14  Function Definition: getColor( ( global highp 4-component vector of float)
530:14    Function Parameters:
540:16    Sequence
550:16      move second child to first child ( temp highp int)
560:16        direct index ( temp highp int)
570:16          'a1' ( global unsized 3-element array of highp int)
580:16          Constant:
590:16            2 (const int)
600:16        Constant:
610:16          1 (const int)
620:17      move second child to first child ( temp highp int)
630:17        direct index ( temp highp int)
640:17          'a2' ( global unsized 10-element array of highp int)
650:17          Constant:
660:17            9 (const int)
670:17        Constant:
680:17          1 (const int)
690:18      move second child to first child ( temp highp int)
700:18        direct index ( temp highp int)
710:18          'b' ( global unsized 3-element array of highp int)
720:18          Constant:
730:18            2 (const int)
740:18        Constant:
750:18          1 (const int)
760:19      move second child to first child ( temp highp int)
770:19        direct index ( temp highp int)
780:19          'c' ( global 7-element array of highp int)
790:19          Constant:
800:19            3 (const int)
810:19        Constant:
820:19          1 (const int)
830:20      move second child to first child ( temp highp int)
840:20        indirect index ( temp highp int)
850:20          'c' ( global 7-element array of highp int)
860:20          'i' ( global highp int)
870:20        Constant:
880:20          1 (const int)
890:22      Branch: Return with expression
900:22        texture ( global highp 4-component vector of float)
910:22          's2D' (layout( binding=1) uniform highp sampler2D)
920:22          Constant:
930:22            0.500000
940:22            0.500000
950:?   Linker Objects
960:?     's2D' (layout( binding=1) uniform highp sampler2D)
970:?     'a1' ( global unsized 3-element array of highp int)
980:?     'a2' ( global unsized 10-element array of highp int)
990:?     'b' ( global unsized 3-element array of highp int)
1000:?     'c' ( global 7-element array of highp int)
1010:?     'i' ( global highp int)
1020:?     'anon@0' (layout( column_major std430) buffer block{layout( column_major std430) buffer unsized 1-element array of highp float r})
1030:?     'anon@1' (layout( column_major std430) buffer block{layout( column_major std430) buffer 4-element array of highp float m})
104
105
106Linked fragment stage:
107
108
109Shader version: 450
110gl_FragCoord origin is upper left
1110:? Sequence
1120:16  Function Definition: main( ( global void)
1130:16    Function Parameters:
1140:18    Sequence
1150:18      move second child to first child ( temp highp 4-component vector of float)
1160:18        'color' (layout( location=0) out highp 4-component vector of float)
1170:18        Function Call: getColor( ( global highp 4-component vector of float)
1180:20      move second child to first child ( temp highp int)
1190:20        direct index ( temp highp int)
1200:20          'a1' ( global 9-element array of highp int)
1210:20          Constant:
1220:20            8 (const int)
1230:20        Constant:
1240:20          1 (const int)
1250:21      move second child to first child ( temp highp int)
1260:21        direct index ( temp highp int)
1270:21          'a2' ( global 10-element array of highp int)
1280:21          Constant:
1290:21            1 (const int)
1300:21        Constant:
1310:21          1 (const int)
1320:22      move second child to first child ( temp highp int)
1330:22        indirect index ( temp highp int)
1340:22          'b' ( global 5-element array of highp int)
1350:22          'i' ( global highp int)
1360:22        Constant:
1370:22          1 (const int)
1380:23      move second child to first child ( temp highp int)
1390:23        direct index ( temp highp int)
1400:23          'c' ( global 7-element array of highp int)
1410:23          Constant:
1420:23            3 (const int)
1430:23        Constant:
1440:23          1 (const int)
1450:14  Function Definition: getColor( ( global highp 4-component vector of float)
1460:14    Function Parameters:
1470:16    Sequence
1480:16      move second child to first child ( temp highp int)
1490:16        direct index ( temp highp int)
1500:16          'a1' ( global 3-element array of highp int)
1510:16          Constant:
1520:16            2 (const int)
1530:16        Constant:
1540:16          1 (const int)
1550:17      move second child to first child ( temp highp int)
1560:17        direct index ( temp highp int)
1570:17          'a2' ( global 10-element array of highp int)
1580:17          Constant:
1590:17            9 (const int)
1600:17        Constant:
1610:17          1 (const int)
1620:18      move second child to first child ( temp highp int)
1630:18        direct index ( temp highp int)
1640:18          'b' ( global 3-element array of highp int)
1650:18          Constant:
1660:18            2 (const int)
1670:18        Constant:
1680:18          1 (const int)
1690:19      move second child to first child ( temp highp int)
1700:19        direct index ( temp highp int)
1710:19          'c' ( global 7-element array of highp int)
1720:19          Constant:
1730:19            3 (const int)
1740:19        Constant:
1750:19          1 (const int)
1760:20      move second child to first child ( temp highp int)
1770:20        indirect index ( temp highp int)
1780:20          'c' ( global 7-element array of highp int)
1790:20          'i' ( global highp int)
1800:20        Constant:
1810:20          1 (const int)
1820:22      Branch: Return with expression
1830:22        texture ( global highp 4-component vector of float)
1840:22          's2D' (layout( binding=1) uniform highp sampler2D)
1850:22          Constant:
1860:22            0.500000
1870:22            0.500000
1880:?   Linker Objects
1890:?     'color' (layout( location=0) out highp 4-component vector of float)
1900:?     'a1' ( global 9-element array of highp int)
1910:?     'a2' ( global 10-element array of highp int)
1920:?     'b' ( global 5-element array of highp int)
1930:?     'c' ( global 7-element array of highp int)
1940:?     'i' ( global highp int)
1950:?     'anon@0' (layout( column_major std430) buffer block{layout( column_major std430) buffer unsized 1-element array of highp float r})
1960:?     'anon@1' (layout( column_major std430) buffer block{layout( column_major std430) buffer 4-element array of highp float m})
1970:?     's2D' (layout( binding=1) uniform highp sampler2D)
198
199// Module Version 10000
200// Generated by (magic number): 80007
201// Id's are bound by 70
202
203                              Capability Shader
204               1:             ExtInstImport  "GLSL.std.450"
205                              MemoryModel Logical GLSL450
206                              EntryPoint Fragment 4  "main" 12
207                              ExecutionMode 4 OriginUpperLeft
208                              Source GLSL 450
209                              Name 4  "main"
210                              Name 9  "getColor("
211                              Name 12  "color"
212                              Name 19  "a1"
213                              Name 27  "a2"
214                              Name 32  "b"
215                              Name 33  "i"
216                              Name 39  "c"
217                              Name 53  "s2D"
218                              Name 62  "bnameRuntime"
219                              MemberName 62(bnameRuntime) 0  "r"
220                              Name 64  ""
221                              Name 67  "bnameImplicit"
222                              MemberName 67(bnameImplicit) 0  "m"
223                              Name 69  ""
224                              Decorate 12(color) Location 0
225                              Decorate 53(s2D) DescriptorSet 0
226                              Decorate 53(s2D) Binding 1
227                              Decorate 61 ArrayStride 4
228                              MemberDecorate 62(bnameRuntime) 0 Offset 0
229                              Decorate 62(bnameRuntime) BufferBlock
230                              Decorate 64 DescriptorSet 0
231                              Decorate 64 Binding 0
232                              Decorate 66 ArrayStride 4
233                              MemberDecorate 67(bnameImplicit) 0 Offset 0
234                              Decorate 67(bnameImplicit) BufferBlock
235                              Decorate 69 DescriptorSet 0
236                              Decorate 69 Binding 0
237               2:             TypeVoid
238               3:             TypeFunction 2
239               6:             TypeFloat 32
240               7:             TypeVector 6(float) 4
241               8:             TypeFunction 7(fvec4)
242              11:             TypePointer Output 7(fvec4)
243       12(color):     11(ptr) Variable Output
244              14:             TypeInt 32 1
245              15:             TypeInt 32 0
246              16:     15(int) Constant 9
247              17:             TypeArray 14(int) 16
248              18:             TypePointer Private 17
249          19(a1):     18(ptr) Variable Private
250              20:     14(int) Constant 8
251              21:     14(int) Constant 1
252              22:             TypePointer Private 14(int)
253              24:     15(int) Constant 10
254              25:             TypeArray 14(int) 24
255              26:             TypePointer Private 25
256          27(a2):     26(ptr) Variable Private
257              29:     15(int) Constant 5
258              30:             TypeArray 14(int) 29
259              31:             TypePointer Private 30
260           32(b):     31(ptr) Variable Private
261           33(i):     22(ptr) Variable Private
262              36:     15(int) Constant 7
263              37:             TypeArray 14(int) 36
264              38:             TypePointer Private 37
265           39(c):     38(ptr) Variable Private
266              40:     14(int) Constant 3
267              42:     14(int) Constant 2
268              44:     14(int) Constant 9
269              50:             TypeImage 6(float) 2D sampled format:Unknown
270              51:             TypeSampledImage 50
271              52:             TypePointer UniformConstant 51
272         53(s2D):     52(ptr) Variable UniformConstant
273              55:             TypeVector 6(float) 2
274              56:    6(float) Constant 1056964608
275              57:   55(fvec2) ConstantComposite 56 56
276              61:             TypeRuntimeArray 6(float)
27762(bnameRuntime):             TypeStruct 61
278              63:             TypePointer Uniform 62(bnameRuntime)
279              64:     63(ptr) Variable Uniform
280              65:     15(int) Constant 4
281              66:             TypeArray 6(float) 65
28267(bnameImplicit):             TypeStruct 66
283              68:             TypePointer Uniform 67(bnameImplicit)
284              69:     68(ptr) Variable Uniform
285         4(main):           2 Function None 3
286               5:             Label
287              13:    7(fvec4) FunctionCall 9(getColor()
288                              Store 12(color) 13
289              23:     22(ptr) AccessChain 19(a1) 20
290                              Store 23 21
291              28:     22(ptr) AccessChain 27(a2) 21
292                              Store 28 21
293              34:     14(int) Load 33(i)
294              35:     22(ptr) AccessChain 32(b) 34
295                              Store 35 21
296              41:     22(ptr) AccessChain 39(c) 40
297                              Store 41 21
298                              Return
299                              FunctionEnd
300    9(getColor():    7(fvec4) Function None 8
301              10:             Label
302              43:     22(ptr) AccessChain 19(a1) 42
303                              Store 43 21
304              45:     22(ptr) AccessChain 27(a2) 44
305                              Store 45 21
306              46:     22(ptr) AccessChain 32(b) 42
307                              Store 46 21
308              47:     22(ptr) AccessChain 39(c) 40
309                              Store 47 21
310              48:     14(int) Load 33(i)
311              49:     22(ptr) AccessChain 39(c) 48
312                              Store 49 21
313              54:          51 Load 53(s2D)
314              58:    7(fvec4) ImageSampleImplicitLod 54 57
315                              ReturnValue 58
316                              FunctionEnd
317