1spv.whileLoop.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 35
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 11 24 28 33
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 140
12                              Name 4  "main"
13                              Name 9  "color"
14                              Name 11  "BaseColor"
15                              Name 24  "d"
16                              Name 28  "bigColor"
17                              Name 33  "gl_FragColor"
18                              Decorate 11(BaseColor) Location 1
19                              Decorate 24(d) Location 2
20                              Decorate 28(bigColor) Location 0
21                              Decorate 33(gl_FragColor) Location 0
22               2:             TypeVoid
23               3:             TypeFunction 2
24               6:             TypeFloat 32
25               7:             TypeVector 6(float) 4
26               8:             TypePointer Function 7(fvec4)
27              10:             TypePointer Input 7(fvec4)
28   11(BaseColor):     10(ptr) Variable Input
29              18:             TypeInt 32 0
30              19:     18(int) Constant 0
31              20:             TypePointer Function 6(float)
32              23:             TypePointer Input 6(float)
33           24(d):     23(ptr) Variable Input
34              26:             TypeBool
35    28(bigColor):     10(ptr) Variable Input
36              32:             TypePointer Output 7(fvec4)
3733(gl_FragColor):     32(ptr) Variable Output
38         4(main):           2 Function None 3
39               5:             Label
40        9(color):      8(ptr) Variable Function
41              12:    7(fvec4) Load 11(BaseColor)
42                              Store 9(color) 12
43                              Branch 13
44              13:             Label
45                              LoopMerge 15 16 None
46                              Branch 17
47              17:             Label
48              21:     20(ptr) AccessChain 9(color) 19
49              22:    6(float) Load 21
50              25:    6(float) Load 24(d)
51              27:    26(bool) FOrdLessThan 22 25
52                              BranchConditional 27 14 15
53              14:               Label
54              29:    7(fvec4)   Load 28(bigColor)
55              30:    7(fvec4)   Load 9(color)
56              31:    7(fvec4)   FAdd 30 29
57                                Store 9(color) 31
58                                Branch 16
59              16:               Label
60                                Branch 13
61              15:             Label
62              34:    7(fvec4) Load 9(color)
63                              Store 33(gl_FragColor) 34
64                              Return
65                              FunctionEnd
66