Files
wgpu/naga/tests/out/spv/pointers.spvasm

77 lines
1.8 KiB
Plaintext

; SPIR-V
; Version: 1.2
; Generator: rspirv
; Bound: 42
OpCapability Shader
OpCapability Linkage
OpExtension "SPV_KHR_storage_buffer_storage_class"
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpMemberName %7 0 "arr"
OpName %7 "DynamicArray"
OpName %8 "dynamic_array"
OpName %11 "f"
OpName %14 "v"
OpName %22 "i"
OpName %23 "v"
OpName %24 "index_unsized"
OpName %34 "i"
OpName %35 "v"
OpName %36 "index_dynamic_array"
OpDecorate %6 ArrayStride 4
OpMemberDecorate %7 0 Offset 0
OpDecorate %7 Block
OpDecorate %8 DescriptorSet 0
OpDecorate %8 Binding 0
%2 = OpTypeVoid
%3 = OpTypeInt 32 1
%4 = OpTypeVector %3 2
%5 = OpTypeInt 32 0
%6 = OpTypeRuntimeArray %5
%7 = OpTypeStruct %6
%9 = OpTypePointer StorageBuffer %7
%8 = OpVariable %9 StorageBuffer
%12 = OpTypeFunction %2
%13 = OpConstant %3 10
%15 = OpTypePointer Function %4
%16 = OpConstantNull %4
%18 = OpTypePointer Function %3
%19 = OpConstant %5 0
%25 = OpTypeFunction %2 %3 %5
%27 = OpTypePointer StorageBuffer %6
%28 = OpTypePointer StorageBuffer %5
%11 = OpFunction %2 None %12
%10 = OpLabel
%14 = OpVariable %15 Function %16
OpBranch %17
%17 = OpLabel
%20 = OpAccessChain %18 %14 %19
OpStore %20 %13
OpReturn
OpFunctionEnd
%24 = OpFunction %2 None %25
%22 = OpFunctionParameter %3
%23 = OpFunctionParameter %5
%21 = OpLabel
OpBranch %26
%26 = OpLabel
%29 = OpAccessChain %28 %8 %19 %22
%30 = OpLoad %5 %29
%31 = OpIAdd %5 %30 %23
%32 = OpAccessChain %28 %8 %19 %22
OpStore %32 %31
OpReturn
OpFunctionEnd
%36 = OpFunction %2 None %25
%34 = OpFunctionParameter %3
%35 = OpFunctionParameter %5
%33 = OpLabel
OpBranch %37
%37 = OpLabel
%38 = OpAccessChain %28 %8 %19 %34
%39 = OpLoad %5 %38
%40 = OpIAdd %5 %39 %35
%41 = OpAccessChain %28 %8 %19 %34
OpStore %41 %40
OpReturn
OpFunctionEnd