aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/spv.branch-return.vert.out
blob: 30918aba41b3481b6694624773f3d919c0020ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
spv.branch-return.vert
// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 38

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Vertex 4  "main" 8 20
                              Source ESSL 310
                              Name 4  "main"
                              Name 8  "gl_InstanceIndex"
                              Name 18  "gl_PerVertex"
                              MemberName 18(gl_PerVertex) 0  "gl_Position"
                              MemberName 18(gl_PerVertex) 1  "gl_PointSize"
                              Name 20  ""
                              Decorate 8(gl_InstanceIndex) BuiltIn InstanceIndex
                              MemberDecorate 18(gl_PerVertex) 0 BuiltIn Position
                              MemberDecorate 18(gl_PerVertex) 1 BuiltIn PointSize
                              Decorate 18(gl_PerVertex) Block
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeInt 32 1
               7:             TypePointer Input 6(int)
8(gl_InstanceIndex):      7(ptr) Variable Input
              16:             TypeFloat 32
              17:             TypeVector 16(float) 4
18(gl_PerVertex):             TypeStruct 17(fvec4) 16(float)
              19:             TypePointer Output 18(gl_PerVertex)
              20:     19(ptr) Variable Output
              21:      6(int) Constant 0
              22:   16(float) Constant 0
              23:   17(fvec4) ConstantComposite 22 22 22 22
              24:             TypePointer Output 17(fvec4)
              30:   16(float) Constant 1039918957
              31:             TypeInt 32 0
              32:     31(int) Constant 0
              33:             TypePointer Output 16(float)
         4(main):           2 Function None 3
               5:             Label
               9:      6(int) Load 8(gl_InstanceIndex)
                              SelectionMerge 14 None
                              Switch 9 14 
                                     case 0: 10
                                     case 1: 11
                                     case 2: 12
                                     case 3: 13
              10:               Label
                                Return
              11:               Label
              25:     24(ptr)   AccessChain 20 21
                                Store 25 23
                                Branch 14
              12:               Label
                                Return
              13:               Label
                                Return
              14:             Label
              34:     33(ptr) AccessChain 20 21 32
              35:   16(float) Load 34
              36:   16(float) FAdd 35 30
              37:     33(ptr) AccessChain 20 21 32
                              Store 37 36
                              Return
                              FunctionEnd