Debian Codegraph @

third_party/spirv-cross/shaders-msl-no-opt/asm/comp/storage-buffer-pointer-argument.asm.comp

raw
1 ; SPIR-V
2 ; Version: 1.3
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 30
5 ; Schema: 0
6 OpCapability Shader
7 OpCapability VariablePointersStorageBuffer
8 %1 = OpExtInstImport "GLSL.std.450"
9 OpMemoryModel Logical GLSL450
10 OpEntryPoint GLCompute %main "main"
11 OpExecutionMode %main LocalSize 1 1 1
12 OpSource GLSL 450
13 OpName %main "main"
14 OpName %copy_out_f1_f1_ "copy_out(f1;f1;"
15 OpName %A "A"
16 OpName %B "B"
17 OpName %SSBO "SSBO"
18 OpMemberName %SSBO 0 "a"
19 OpName %_ ""
20 OpName %SSBORead "SSBORead"
21 OpMemberName %SSBORead 0 "b"
22 OpName %__0 ""
23 OpMemberDecorate %SSBO 0 NonReadable
24 OpMemberDecorate %SSBO 0 Offset 0
25 OpDecorate %SSBO Block
26 OpDecorate %_ DescriptorSet 0
27 OpDecorate %_ Binding 0
28 OpMemberDecorate %SSBORead 0 NonWritable
29 OpMemberDecorate %SSBORead 0 Offset 0
30 OpDecorate %SSBORead Block
31 OpDecorate %__0 DescriptorSet 0
32 OpDecorate %__0 Binding 1
33 %void = OpTypeVoid
34 %3 = OpTypeFunction %void
35 %float = OpTypeFloat 32
36 %_ptr_Function_float = OpTypePointer Function %float
37 %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
38 %8 = OpTypeFunction %void %_ptr_StorageBuffer_float %_ptr_StorageBuffer_float
39 %SSBO = OpTypeStruct %float
40 %_ptr_StorageBuffer_SSBO = OpTypePointer StorageBuffer %SSBO
41 %_ = OpVariable %_ptr_StorageBuffer_SSBO StorageBuffer
42 %int = OpTypeInt 32 1
43 %int_0 = OpConstant %int 0
44 %SSBORead = OpTypeStruct %float
45 %_ptr_StorageBuffer_SSBORead = OpTypePointer StorageBuffer %SSBORead
46 %__0 = OpVariable %_ptr_StorageBuffer_SSBORead StorageBuffer
47 %main = OpFunction %void None %3
48 %5 = OpLabel
49 %param = OpVariable %_ptr_Function_float Function
50 %param_0 = OpVariable %_ptr_Function_float Function
51 %25 = OpAccessChain %_ptr_StorageBuffer_float %_ %int_0
52 %26 = OpAccessChain %_ptr_StorageBuffer_float %__0 %int_0
53 %27 = OpFunctionCall %void %copy_out_f1_f1_ %25 %26
54 OpReturn
55 OpFunctionEnd
56 %copy_out_f1_f1_ = OpFunction %void None %8
57 %A = OpFunctionParameter %_ptr_StorageBuffer_float
58 %B = OpFunctionParameter %_ptr_StorageBuffer_float
59 %12 = OpLabel
60 %13 = OpLoad %float %B
61 OpStore %A %13
62 OpReturn
63 OpFunctionEnd