blob: ccbdf3226f5ffbfc402a9a61ca490fbc555d2436 [file] [edit]
spv.descriptorHeap.PushConstant.comp
// Module Version 10400
// Generated by (magic number): 8000b
// Id's are bound by 48
Capability Shader
Capability UntypedPointersKHR
Capability DescriptorHeapEXT
Extension "SPV_EXT_descriptor_heap"
Extension "SPV_KHR_untyped_pointers"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 4 "main" 20 28
ExecutionMode 4 LocalSize 1 1 1
Source GLSL 450
SourceExtension "GL_EXT_descriptor_heap"
Name 4 "main"
Name 8 "i"
Name 16 "PUSH_LENGTH"
Name 20 "resource_heap"
Name 23 "O"
MemberName 23(O) 0 "outputBuffer"
Name 26 "P"
MemberName 26(P) 0 "pushData"
Name 28 ""
Decorate 16(PUSH_LENGTH) SpecId 0
Decorate 20(resource_heap) BuiltIn ResourceHeapEXT
Decorate 22 ArrayStride 4
Decorate 23(O) Block
MemberDecorate 23(O) 0 Offset 0
Decorate 25 ArrayStride 4
Decorate 26(P) Block
MemberDecorate 26(P) 0 Offset 0
DecorateId 37 DecorationArrayStrideIdEXT 36
Decorate 47 BuiltIn WorkgroupSize
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 1
7: TypePointer Function 6(int)
9: 6(int) Constant 0
16(PUSH_LENGTH): 6(int) SpecConstant 1
17: TypeBool
19: TypeUntypedPointerKHR UniformConstant
20(resource_heap): 19(ptr) UntypedVariableKHR UniformConstant
21: TypeInt 32 0
22: TypeRuntimeArray 21(int)
23(O): TypeStruct 22
25: TypeArray 6(int) 16(PUSH_LENGTH)
26(P): TypeStruct 25
27: TypePointer PushConstant 26(P)
28: 27(ptr) Variable PushConstant
30: TypePointer PushConstant 6(int)
35: TypeBufferEXT StorageBuffer
36: 6(int) ConstantSizeOfEXT 35
37: TypeRuntimeArray 35
38: TypePointer StorageBuffer 23(O)
40: TypePointer StorageBuffer 21(int)
43: 6(int) Constant 1
45: TypeVector 21(int) 3
46: 21(int) Constant 1
47: 45(ivec3) ConstantComposite 46 46 46
4(main): 2 Function None 3
5: Label
8(i): 7(ptr) Variable Function
Store 8(i) 9
Branch 10
10: Label
LoopMerge 12 13 None
Branch 14
14: Label
15: 6(int) Load 8(i)
18: 17(bool) SLessThan 15 16(PUSH_LENGTH)
BranchConditional 18 11 12
11: Label
24: 6(int) Load 8(i)
29: 6(int) Load 8(i)
31: 30(ptr) AccessChain 28 9 29
32: 6(int) Load 31
33: 21(int) Bitcast 32
34: 19(ptr) UntypedAccessChainKHR 37 20(resource_heap) 9
39: 38(ptr) BufferPointerEXT 34
41: 40(ptr) AccessChain 39 9 24
Store 41 33
Branch 13
13: Label
42: 6(int) Load 8(i)
44: 6(int) IAdd 42 43
Store 8(i) 44
Branch 10
12: Label
Return
FunctionEnd