Files
wgpu/tests/out/spv/interface.compute.spvasm
T

86 lines
2.2 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: rspirv
; Bound: 56
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %31 "compute" %19 %22 %24 %27 %29
OpExecutionMode %31 LocalSize 1 1 1
OpMemberDecorate %7 0 Offset 0
OpMemberDecorate %7 1 Offset 16
OpMemberDecorate %9 0 Offset 0
OpMemberDecorate %9 1 Offset 4
OpMemberDecorate %9 2 Offset 8
OpDecorate %11 ArrayStride 4
OpMemberDecorate %14 0 Offset 0
OpMemberDecorate %15 0 Offset 0
OpDecorate %19 BuiltIn GlobalInvocationId
OpDecorate %22 BuiltIn LocalInvocationId
OpDecorate %24 BuiltIn LocalInvocationIndex
OpDecorate %27 BuiltIn WorkgroupId
OpDecorate %29 BuiltIn NumWorkgroups
%2 = OpTypeVoid
%4 = OpTypeInt 32 1
%3 = OpConstant %4 1
%6 = OpTypeFloat 32
%5 = OpTypeVector %6 4
%7 = OpTypeStruct %5 %6
%8 = OpTypeInt 32 0
%9 = OpTypeStruct %6 %8 %6
%10 = OpTypeBool
%12 = OpConstant %8 1
%11 = OpTypeArray %8 %12
%13 = OpTypeVector %8 3
%14 = OpTypeStruct %8
%15 = OpTypeStruct %8
%17 = OpTypePointer Workgroup %11
%16 = OpVariable %17 Workgroup
%20 = OpTypePointer Input %13
%19 = OpVariable %20 Input
%22 = OpVariable %20 Input
%25 = OpTypePointer Input %8
%24 = OpVariable %25 Input
%27 = OpVariable %20 Input
%29 = OpVariable %20 Input
%32 = OpTypeFunction %2
%33 = OpConstant %4 0
%35 = OpConstantNull %11
%36 = OpConstantNull %13
%37 = OpTypeVector %10 3
%42 = OpConstant %8 2
%43 = OpConstant %8 264
%45 = OpTypePointer Workgroup %8
%54 = OpConstant %8 0
%31 = OpFunction %2 None %32
%18 = OpLabel
%21 = OpLoad %13 %19
%23 = OpLoad %13 %22
%26 = OpLoad %8 %24
%28 = OpLoad %13 %27
%30 = OpLoad %13 %29
OpBranch %34
%34 = OpLabel
%38 = OpIEqual %37 %23 %36
%39 = OpAll %10 %38
OpSelectionMerge %40 None
OpBranchConditional %39 %41 %40
%41 = OpLabel
OpStore %16 %35
OpBranch %40
%40 = OpLabel
OpControlBarrier %42 %42 %43
OpBranch %44
%44 = OpLabel
%46 = OpCompositeExtract %8 %21 0
%47 = OpCompositeExtract %8 %23 0
%48 = OpIAdd %8 %46 %47
%49 = OpIAdd %8 %48 %26
%50 = OpCompositeExtract %8 %28 0
%51 = OpIAdd %8 %49 %50
%52 = OpCompositeExtract %8 %30 0
%53 = OpIAdd %8 %51 %52
%55 = OpAccessChain %45 %16 %54
OpStore %55 %53
OpReturn
OpFunctionEnd