Debian Codegraph @

third_party/spirv-cross/shaders-no-opt/asm/comp/buffer-reference-synthesized-pointer.asm.nocompat.vk.comp

raw
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 %_runtimearr_uint ArrayStride 4
18 OpMemberDecorate %uintPtr 0 Offset 0
19 OpDecorate %uintPtr Block
20 OpDecorate %ptr AliasedPointerEXT
21 OpMemberDecorate %Registers 0 Offset 0
22 OpDecorate %Registers Block
23 %void = OpTypeVoid
24 %3 = OpTypeFunction %void
25 %uint = OpTypeInt 32 0
26 %_runtimearr_uint = OpTypeRuntimeArray %uint
27 %uintPtr = OpTypeStruct %_runtimearr_uint
28 %_ptr_PhysicalStorageBufferEXT_uint_array = OpTypePointer PhysicalStorageBufferEXT %_runtimearr_uint
29 %_ptr_Function__ptr_PhysicalStorageBufferEXT_uint_array = OpTypePointer Function %_ptr_PhysicalStorageBufferEXT_uint_array
30 %ulong = OpTypeInt 64 0
31 %Registers = OpTypeStruct %ulong
32 %_ptr_PushConstant_Registers = OpTypePointer PushConstant %Registers
33 %registers = OpVariable %_ptr_PushConstant_Registers PushConstant
34 %int = OpTypeInt 32 1
35 %int_0 = OpConstant %int 0
36 %_ptr_PushConstant_ulong = OpTypePointer PushConstant %ulong
37 %int_10 = OpConstant %int 10
38 %uint_20 = OpConstant %uint 20
39 %_ptr_PhysicalStorageBufferEXT_uint = OpTypePointer PhysicalStorageBufferEXT %uint
40 %main = OpFunction %void None %3
41 %5 = OpLabel
42 %ptr = OpVariable %_ptr_Function__ptr_PhysicalStorageBufferEXT_uint_array Function
43 %19 = OpAccessChain %_ptr_PushConstant_ulong %registers %int_0
44 %20 = OpLoad %ulong %19
45 %21 = OpConvertUToPtr %_ptr_PhysicalStorageBufferEXT_uint_array %20
46 OpStore %ptr %21
47 %22 = OpLoad %_ptr_PhysicalStorageBufferEXT_uint_array %ptr
48 %26 = OpAccessChain %_ptr_PhysicalStorageBufferEXT_uint %22 %int_10
49 OpStore %26 %uint_20 Aligned 4
50 OpReturn
51 OpFunctionEnd