| 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 31 |
| 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 26 "O" |
| MemberName 26(O) 0 "outputBuffer" |
| Name 29 "P" |
| MemberName 29(P) 0 "pushData" |
| Name 31 "" |
| Decorate 16(PUSH_LENGTH) SpecId 0 |
| Decorate 20(resource_heap) BuiltIn ResourceHeapEXT |
| DecorateId 24 ArrayStrideIdEXT 23 |
| Decorate 25 ArrayStride 4 |
| Decorate 26(O) Block |
| MemberDecorate 26(O) 0 Offset 0 |
| Decorate 28 ArrayStride 4 |
| Decorate 29(P) Block |
| MemberDecorate 29(P) 0 Offset 0 |
| 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: TypeBufferEXT StorageBuffer |
| 22: TypeInt 32 0 |
| 23: 22(int) ConstantSizeOfEXT 21 |
| 24: TypeRuntimeArray 21 |
| 25: TypeRuntimeArray 22(int) |
| 26(O): TypeStruct 25 |
| 28: TypeArray 6(int) 16(PUSH_LENGTH) |
| 29(P): TypeStruct 28 |
| 30: TypePointer PushConstant 29(P) |
| 31: 30(ptr) Variable PushConstant |
| 33: TypePointer PushConstant 6(int) |
| 38: TypePointer StorageBuffer 26(O) |
| 40: TypePointer StorageBuffer 22(int) |
| 43: 6(int) Constant 1 |
| 45: TypeVector 22(int) 3 |
| 46: 22(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 |
| 27: 6(int) Load 8(i) |
| 32: 6(int) Load 8(i) |
| 34: 33(ptr) AccessChain 31 9 32 |
| 35: 6(int) Load 34 |
| 36: 22(int) Bitcast 35 |
| 37: 19(ptr) UntypedAccessChainKHR 24 20(resource_heap) 9 |
| 39: 38(ptr) BufferPointerEXT 37 |
| 41: 40(ptr) AccessChain 39 9 27 |
| Store 41 36 |
| 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 |