1spv.branch-return.vert
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 38
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Vertex 4  "main" 8 20
10                              Source ESSL 310
11                              Name 4  "main"
12                              Name 8  "gl_InstanceIndex"
13                              Name 18  "gl_PerVertex"
14                              MemberName 18(gl_PerVertex) 0  "gl_Position"
15                              MemberName 18(gl_PerVertex) 1  "gl_PointSize"
16                              Name 20  ""
17                              Decorate 8(gl_InstanceIndex) BuiltIn InstanceIndex
18                              MemberDecorate 18(gl_PerVertex) 0 BuiltIn Position
19                              MemberDecorate 18(gl_PerVertex) 1 BuiltIn PointSize
20                              Decorate 18(gl_PerVertex) Block
21               2:             TypeVoid
22               3:             TypeFunction 2
23               6:             TypeInt 32 1
24               7:             TypePointer Input 6(int)
258(gl_InstanceIndex):      7(ptr) Variable Input
26              16:             TypeFloat 32
27              17:             TypeVector 16(float) 4
2818(gl_PerVertex):             TypeStruct 17(fvec4) 16(float)
29              19:             TypePointer Output 18(gl_PerVertex)
30              20:     19(ptr) Variable Output
31              21:      6(int) Constant 0
32              22:   16(float) Constant 0
33              23:   17(fvec4) ConstantComposite 22 22 22 22
34              24:             TypePointer Output 17(fvec4)
35              30:   16(float) Constant 1039918957
36              31:             TypeInt 32 0
37              32:     31(int) Constant 0
38              33:             TypePointer Output 16(float)
39         4(main):           2 Function None 3
40               5:             Label
41               9:      6(int) Load 8(gl_InstanceIndex)
42                              SelectionMerge 14 None
43                              Switch 9 14
44                                     case 0: 10
45                                     case 1: 11
46                                     case 2: 12
47                                     case 3: 13
48              10:               Label
49                                Return
50              11:               Label
51              25:     24(ptr)   AccessChain 20 21
52                                Store 25 23
53                                Branch 14
54              12:               Label
55                                Return
56              13:               Label
57                                Return
58              14:             Label
59              34:     33(ptr) AccessChain 20 21 32
60              35:   16(float) Load 34
61              36:   16(float) FAdd 35 30
62              37:     33(ptr) AccessChain 20 21 32
63                              Store 37 36
64                              Return
65                              FunctionEnd
66