1spv.bufferhandle10.frag 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 40 5 6 Capability Shader 7 Capability VulkanMemoryModelKHR 8 Capability PhysicalStorageBufferAddressesEXT 9 Extension "SPV_EXT_physical_storage_buffer" 10 Extension "SPV_KHR_storage_buffer_storage_class" 11 Extension "SPV_KHR_vulkan_memory_model" 12 1: ExtInstImport "GLSL.std.450" 13 MemoryModel PhysicalStorageBuffer64EXT VulkanKHR 14 EntryPoint Fragment 4 "main" 19 15 ExecutionMode 4 OriginUpperLeft 16 Source GLSL 450 17 SourceExtension "GL_ARB_gpu_shader_int64" 18 SourceExtension "GL_EXT_buffer_reference" 19 Name 4 "main" 20 Name 7 "t2" 21 MemberName 7(t2) 0 "f" 22 Name 10 "blockType" 23 MemberName 10(blockType) 0 "x" 24 Name 12 "t" 25 Name 19 "i" 26 Name 28 "b" 27 Name 34 "b2" 28 MemberDecorate 7(t2) 0 Offset 0 29 Decorate 7(t2) Block 30 Decorate 9 ArrayStride 4 31 MemberDecorate 10(blockType) 0 Offset 0 32 Decorate 10(blockType) Block 33 Decorate 12(t) DescriptorSet 0 34 Decorate 12(t) Binding 0 35 Decorate 19(i) Flat 36 Decorate 19(i) Location 0 37 Decorate 28(b) DecorationAliasedPointerEXT 38 Decorate 34(b2) DecorationAliasedPointerEXT 39 2: TypeVoid 40 3: TypeFunction 2 41 TypeForwardPointer 6 PhysicalStorageBufferEXT 42 7(t2): TypeStruct 6 43 8: TypeInt 32 0 44 9: TypeRuntimeArray 8(int) 45 10(blockType): TypeStruct 9 46 6: TypePointer PhysicalStorageBufferEXT 10(blockType) 47 11: TypePointer StorageBuffer 7(t2) 48 12(t): 11(ptr) Variable StorageBuffer 49 13: TypeInt 32 1 50 14: 13(int) Constant 0 51 15: TypePointer StorageBuffer 6(ptr) 52 18: TypePointer Input 8(int) 53 19(i): 18(ptr) Variable Input 54 21: TypePointer PhysicalStorageBufferEXT 8(int) 55 23: 8(int) Constant 1 56 24: 8(int) Constant 5 57 25: 8(int) Constant 0 58 27: TypePointer Function 6(ptr) 59 32: 8(int) Constant 2 60 38: 8(int) Constant 3 61 4(main): 2 Function None 3 62 5: Label 63 28(b): 27(ptr) Variable Function 64 34(b2): 27(ptr) Variable Function 65 16: 15(ptr) AccessChain 12(t) 14 66 17: 6(ptr) Load 16 67 20: 8(int) Load 19(i) 68 22: 21(ptr) AccessChain 17 14 20 69 26: 8(int) AtomicIAdd 22 24 25 23 70 29: 15(ptr) AccessChain 12(t) 14 71 30: 6(ptr) Load 29 72 Store 28(b) 30 73 31: 6(ptr) Load 28(b) 74 33: 21(ptr) AccessChain 31 14 14 75 Store 33 32 Aligned MakePointerAvailableKHR NonPrivatePointerKHR 4 24 76 35: 15(ptr) AccessChain 12(t) 14 77 36: 6(ptr) Load 35 78 Store 34(b2) 36 Volatile 79 37: 6(ptr) Load 34(b2) Volatile 80 39: 21(ptr) AccessChain 37 14 14 81 Store 39 38 Volatile Aligned MakePointerAvailableKHR NonPrivatePointerKHR 4 24 82 Return 83 FunctionEnd 84