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