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