1spv.while-simple.vert
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 22
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Vertex 4  "main"
10                              Source ESSL 310
11                              Name 4  "main"
12                              Name 8  "i"
13               2:             TypeVoid
14               3:             TypeFunction 2
15               6:             TypeInt 32 1
16               7:             TypePointer Function 6(int)
17               9:      6(int) Constant 0
18              16:      6(int) Constant 10
19              17:             TypeBool
20              20:      6(int) Constant 1
21         4(main):           2 Function None 3
22               5:             Label
23            8(i):      7(ptr) Variable Function
24                              Store 8(i) 9
25                              Branch 10
26              10:             Label
27                              LoopMerge 12 13 None
28                              Branch 14
29              14:             Label
30              15:      6(int) Load 8(i)
31              18:    17(bool) SLessThan 15 16
32                              BranchConditional 18 11 12
33              11:               Label
34              19:      6(int)   Load 8(i)
35              21:      6(int)   IAdd 19 20
36                                Store 8(i) 21
37                                Branch 13
38              13:               Label
39                                Branch 10
40              12:             Label
41                              Return
42                              FunctionEnd
43