• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.bufferhandle4.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 61
5
6                              Capability Shader
7                              Capability PhysicalStorageBufferAddressesEXT
8                              Extension  "SPV_KHR_physical_storage_buffer"
9                              Extension  "SPV_KHR_storage_buffer_storage_class"
10               1:             ExtInstImport  "GLSL.std.450"
11                              MemoryModel PhysicalStorageBuffer64EXT GLSL450
12                              EntryPoint Fragment 4  "main"
13                              ExecutionMode 4 OriginUpperLeft
14                              Source GLSL 450
15                              SourceExtension  "GL_EXT_buffer_reference"
16                              Name 4  "main"
17                              Name 8  "t4"
18                              MemberName 8(t4) 0  "j"
19                              MemberName 8(t4) 1  "k"
20                              Name 10  "t3"
21                              MemberName 10(t3) 0  "h"
22                              MemberName 10(t3) 1  "i"
23                              Name 11  "t4"
24                              MemberName 11(t4) 0  "j"
25                              MemberName 11(t4) 1  "k"
26                              Name 13  "x"
27                              Name 19  "t5"
28                              MemberName 19(t5) 0  "m"
29                              Name 21  "s5"
30                              Name 43  "b"
31                              MemberDecorate 8(t4) 0 Offset 0
32                              MemberDecorate 8(t4) 1 Offset 8
33                              Decorate 8(t4) Block
34                              MemberDecorate 10(t3) 0 Offset 0
35                              MemberDecorate 10(t3) 1 Offset 8
36                              Decorate 10(t3) Block
37                              MemberDecorate 11(t4) 0 Offset 0
38                              MemberDecorate 11(t4) 1 Offset 8
39                              Decorate 11(t4) Block
40                              Decorate 13(x) DescriptorSet 1
41                              Decorate 13(x) Binding 2
42                              MemberDecorate 19(t5) 0 Offset 0
43                              Decorate 19(t5) Block
44                              Decorate 21(s5) DescriptorSet 0
45                              Decorate 21(s5) Binding 0
46                              Decorate 47 DecorationAliasedPointerEXT
47               2:             TypeVoid
48               3:             TypeFunction 2
49               6:             TypeInt 32 1
50                              TypeForwardPointer 7 PhysicalStorageBufferEXT
51           8(t4):             TypeStruct 6(int) 7
52                              TypeForwardPointer 9 PhysicalStorageBufferEXT
53          10(t3):             TypeStruct 6(int) 9
54          11(t4):             TypeStruct 6(int) 7
55               9:             TypePointer PhysicalStorageBufferEXT 11(t4)
56               7:             TypePointer PhysicalStorageBufferEXT 10(t3)
57              12:             TypePointer StorageBuffer 8(t4)
58           13(x):     12(ptr) Variable StorageBuffer
59              14:      6(int) Constant 1
60              15:             TypePointer StorageBuffer 7(ptr)
61              18:      6(int) Constant 0
62          19(t5):             TypeStruct 9(ptr)
63              20:             TypePointer StorageBuffer 19(t5)
64          21(s5):     20(ptr) Variable StorageBuffer
65              22:             TypePointer StorageBuffer 9(ptr)
66              25:             TypePointer PhysicalStorageBufferEXT 7(ptr)
67              28:             TypePointer PhysicalStorageBufferEXT 9(ptr)
68              37:             TypePointer PhysicalStorageBufferEXT 6(int)
69              41:             TypeBool
70              42:             TypePointer Function 41(bool)
71              44:    41(bool) ConstantTrue
72              46:             TypePointer Function 9(ptr)
73         4(main):           2 Function None 3
74               5:             Label
75           43(b):     42(ptr) Variable Function
76              47:     46(ptr) Variable Function
77              16:     15(ptr) AccessChain 13(x) 14
78              17:      7(ptr) Load 16
79              23:     22(ptr) AccessChain 21(s5) 18
80              24:      9(ptr) Load 23
81              26:     25(ptr) AccessChain 24 14
82              27:      7(ptr) Load 26 Aligned 8
83              29:     28(ptr) AccessChain 27 14
84              30:      9(ptr) Load 29 Aligned 8
85              31:     25(ptr) AccessChain 30 14
86              32:      7(ptr) Load 31 Aligned 8
87              33:     28(ptr) AccessChain 32 14
88              34:      9(ptr) Load 33 Aligned 8
89              35:     25(ptr) AccessChain 34 14
90              36:      7(ptr) Load 35 Aligned 8
91              38:     37(ptr) AccessChain 36 18
92              39:      6(int) Load 38 Aligned 16
93              40:     37(ptr) AccessChain 17 18
94                              Store 40 39 Aligned 16
95                              Store 43(b) 44
96              45:    41(bool) Load 43(b)
97                              SelectionMerge 49 None
98                              BranchConditional 45 48 52
99              48:               Label
100              50:     22(ptr)   AccessChain 21(s5) 18
101              51:      9(ptr)   Load 50
102                                Store 47 51
103                                Branch 49
104              52:               Label
105              53:     22(ptr)   AccessChain 21(s5) 18
106              54:      9(ptr)   Load 53
107              55:     25(ptr)   AccessChain 54 14
108              56:      7(ptr)   Load 55 Aligned 8
109              57:     28(ptr)   AccessChain 56 14
110              58:      9(ptr)   Load 57 Aligned 8
111                                Store 47 58
112                                Branch 49
113              49:             Label
114              59:      9(ptr) Load 47
115              60:     22(ptr) AccessChain 21(s5) 18
116                              Store 60 59
117                              Return
118                              FunctionEnd
119