1; SPIR-V 2; Version: 1.0 3; Generator: Khronos Glslang Reference Front End; 7 4; Bound: 27 5; Schema: 0 6 OpCapability Shader 7 OpCapability Int64 8 OpCapability PhysicalStorageBufferAddressesEXT 9 OpExtension "SPV_EXT_physical_storage_buffer" 10 %1 = OpExtInstImport "GLSL.std.450" 11 OpMemoryModel PhysicalStorageBuffer64EXT GLSL450 12 OpEntryPoint GLCompute %main "main" 13 OpExecutionMode %main LocalSize 1 1 1 14 OpSource GLSL 450 15 OpSourceExtension "GL_ARB_gpu_shader_int64" 16 OpSourceExtension "GL_EXT_buffer_reference" 17 OpDecorate %ptr AliasedPointerEXT 18 OpMemberDecorate %Registers 0 Offset 0 19 OpDecorate %Registers Block 20 %void = OpTypeVoid 21 %3 = OpTypeFunction %void 22 %uint = OpTypeInt 32 0 23%_ptr_PhysicalStorageBufferEXT_uint = OpTypePointer PhysicalStorageBufferEXT %uint 24%_ptr_Function__ptr_PhysicalStorageBufferEXT_uint = OpTypePointer Function %_ptr_PhysicalStorageBufferEXT_uint 25 %ulong = OpTypeInt 64 0 26 %Registers = OpTypeStruct %ulong 27%_ptr_PushConstant_Registers = OpTypePointer PushConstant %Registers 28 %registers = OpVariable %_ptr_PushConstant_Registers PushConstant 29 %int = OpTypeInt 32 1 30 %int_0 = OpConstant %int 0 31%_ptr_PushConstant_ulong = OpTypePointer PushConstant %ulong 32 %int_10 = OpConstant %int 10 33 %uint_20 = OpConstant %uint 20 34 %main = OpFunction %void None %3 35 %5 = OpLabel 36 %ptr = OpVariable %_ptr_Function__ptr_PhysicalStorageBufferEXT_uint Function 37 %19 = OpAccessChain %_ptr_PushConstant_ulong %registers %int_0 38 %20 = OpLoad %ulong %19 39 %21 = OpConvertUToPtr %_ptr_PhysicalStorageBufferEXT_uint %20 40 OpStore %ptr %21 41 %22 = OpLoad %_ptr_PhysicalStorageBufferEXT_uint %ptr 42 OpStore %22 %uint_20 Aligned 4 43 OpReturn 44 OpFunctionEnd 45