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