yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Shaochi Zhou(AMD)Implement extension GL_EXT_descriptor_heap.c8d3e066

16.3.0
4.4 KiB91 linesraw
1spv.descriptorHeap.PushConstant.comp
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 47
5
6                              Capability Shader
7                              Capability UntypedPointersKHR
8                              Capability DescriptorHeapEXT
9                              Extension  "SPV_EXT_descriptor_heap"
10                              Extension  "SPV_KHR_untyped_pointers"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint GLCompute 4  "main" 20 28
14                              ExecutionMode 4 LocalSize 1 1 1
15                              Source GLSL 450
16                              SourceExtension  "GL_EXT_descriptor_heap"
17                              Name 4  "main"
18                              Name 8  "i"
19                              Name 16  "PUSH_LENGTH"
20                              Name 20  "resource_heap"
21                              Name 23  "O"
22                              MemberName 23(O) 0  "outputBuffer"
23                              Name 26  "P"
24                              MemberName 26(P) 0  "pushData"
25                              Name 28  ""
26                              Decorate 16(PUSH_LENGTH) SpecId 0
27                              Decorate 20(resource_heap) BuiltIn ResourceHeapEXT
28                              Decorate 22 ArrayStride 4
29                              Decorate 23(O) Block
30                              MemberDecorate 23(O) 0 Offset 0
31                              Decorate 25 ArrayStride 4
32                              Decorate 26(P) Block
33                              MemberDecorate 26(P) 0 Offset 0
34                              DecorateId 38 DecorationArrayStrideIdEXT 37
35                              Decorate 46 BuiltIn WorkgroupSize
36               2:             TypeVoid
37               3:             TypeFunction 2
38               6:             TypeInt 32 1
39               7:             TypePointer Function 6(int)
40               9:      6(int) Constant 0
41 16(PUSH_LENGTH):      6(int) SpecConstant 1
42              17:             TypeBool
43              19:             TypeUntypedPointerKHR UniformConstant
4420(resource_heap):     19(ptr) UntypedVariableKHR UniformConstant
45              21:             TypeInt 32 0
46              22:             TypeRuntimeArray 21(int)
47           23(O):             TypeStruct 22
48              25:             TypeArray 6(int) 16(PUSH_LENGTH)
49           26(P):             TypeStruct 25
50              27:             TypePointer PushConstant 26(P)
51              28:     27(ptr) Variable PushConstant
52              30:             TypePointer PushConstant 6(int)
53              34:             TypeUntypedPointerKHR StorageBuffer
54              36:             TypeBufferEXT StorageBuffer
55              37:      6(int) ConstantSizeOfEXT 36
56              38:             TypeRuntimeArray 36
57              42:      6(int) Constant 1
58              44:             TypeVector 21(int) 3
59              45:     21(int) Constant 1
60              46:   44(ivec3) ConstantComposite 45 45 45
61         4(main):           2 Function None 3
62               5:             Label
63            8(i):      7(ptr) Variable Function
64                              Store 8(i) 9
65                              Branch 10
66              10:             Label
67                              LoopMerge 12 13 None
68                              Branch 14
69              14:             Label
70              15:      6(int) Load 8(i)
71              18:    17(bool) SLessThan 15 16(PUSH_LENGTH)
72                              BranchConditional 18 11 12
73              11:               Label
74              24:      6(int)   Load 8(i)
75              29:      6(int)   Load 8(i)
76              31:     30(ptr)   AccessChain 28 9 29
77              32:      6(int)   Load 31
78              33:     21(int)   Bitcast 32
79              35:     19(ptr)   UntypedAccessChainKHR 38 20(resource_heap) 9
80              39:     34(ptr)   BufferPointerEXT 35
81              40:     34(ptr)   UntypedAccessChainKHR 23(O) 39 9 24
82                                Store 40 33
83                                Branch 13
84              13:               Label
85              41:      6(int)   Load 8(i)
86              43:      6(int)   IAdd 41 42
87                                Store 8(i) 43
88                                Branch 10
89              12:             Label
90                              Return
91                              FunctionEnd