Files
wgpu/tests/out/spv/binding-buffer-arrays.spvasm
T

102 lines
2.6 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 63
OpCapability Shader
OpCapability ShaderNonUniform
OpExtension "SPV_KHR_storage_buffer_storage_class"
OpExtension "SPV_EXT_descriptor_indexing"
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %28 "main" %23 %26
OpExecutionMode %28 OriginUpperLeft
OpMemberDecorate %4 0 Offset 0
OpMemberDecorate %5 0 Offset 0
OpMemberDecorate %8 0 Offset 0
OpDecorate %11 NonWritable
OpDecorate %11 DescriptorSet 0
OpDecorate %11 Binding 0
OpDecorate %5 Block
OpDecorate %15 DescriptorSet 0
OpDecorate %15 Binding 10
OpDecorate %16 Block
OpMemberDecorate %16 0 Offset 0
OpDecorate %23 Location 0
OpDecorate %23 Flat
OpDecorate %26 Location 0
OpDecorate %55 NonUniform
%2 = OpTypeVoid
%3 = OpTypeInt 32 0
%4 = OpTypeStruct %3
%5 = OpTypeStruct %3
%7 = OpConstant %3 1
%6 = OpTypeArray %5 %7
%8 = OpTypeStruct %3
%10 = OpTypeInt 32 1
%9 = OpConstant %10 1
%14 = OpConstant %3 10
%13 = OpTypeArray %5 %14
%12 = OpTypePointer StorageBuffer %13
%11 = OpVariable %12 StorageBuffer
%16 = OpTypeStruct %4
%17 = OpTypePointer Uniform %16
%15 = OpVariable %17 Uniform
%19 = OpTypePointer Function %3
%20 = OpConstantNull %3
%24 = OpTypePointer Input %3
%23 = OpVariable %24 Input
%27 = OpTypePointer Output %3
%26 = OpVariable %27 Output
%29 = OpTypeFunction %2
%30 = OpTypePointer Uniform %4
%31 = OpConstant %3 0
%33 = OpTypePointer StorageBuffer %6
%35 = OpTypePointer Uniform %3
%39 = OpTypePointer StorageBuffer %5
%40 = OpTypePointer StorageBuffer %3
%46 = OpTypeBool
%28 = OpFunction %2 None %29
%21 = OpLabel
%18 = OpVariable %19 Function %20
%25 = OpLoad %3 %23
%22 = OpCompositeConstruct %8 %25
%32 = OpAccessChain %30 %15 %31
OpBranch %34
%34 = OpLabel
%36 = OpAccessChain %35 %32 %31
%37 = OpLoad %3 %36
%38 = OpCompositeExtract %3 %22 0
OpStore %18 %31
%41 = OpAccessChain %40 %11 %31 %31
%42 = OpLoad %3 %41
%43 = OpLoad %3 %18
%44 = OpIAdd %3 %43 %42
OpStore %18 %44
%45 = OpULessThan %46 %37 %7
OpSelectionMerge %48 None
OpBranchConditional %45 %49 %48
%49 = OpLabel
%47 = OpAccessChain %40 %11 %37 %31
%50 = OpLoad %3 %47
OpBranch %48
%48 = OpLabel
%51 = OpPhi %3 %20 %34 %50 %49
%52 = OpLoad %3 %18
%53 = OpIAdd %3 %52 %51
OpStore %18 %53
%54 = OpULessThan %46 %38 %7
OpSelectionMerge %56 None
OpBranchConditional %54 %57 %56
%57 = OpLabel
%55 = OpAccessChain %40 %11 %38 %31
%58 = OpLoad %3 %55
OpBranch %56
%56 = OpLabel
%59 = OpPhi %3 %20 %48 %58 %57
%60 = OpLoad %3 %18
%61 = OpIAdd %3 %60 %59
OpStore %18 %61
%62 = OpLoad %3 %18
OpStore %26 %62
OpReturn
OpFunctionEnd