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

85 lines
2.1 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: rspirv
; Bound: 55
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
%34 = OpConstantNull %11
%35 = OpConstantNull %13
%36 = OpTypeVector %10 3
%41 = OpConstant %8 2
%42 = OpConstant %8 264
%44 = OpTypePointer Workgroup %8
%53 = 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 %33
%33 = OpLabel
%37 = OpIEqual %36 %23 %35
%38 = OpAll %10 %37
OpSelectionMerge %39 None
OpBranchConditional %38 %40 %39
%40 = OpLabel
OpStore %16 %34
OpBranch %39
%39 = OpLabel
OpControlBarrier %41 %41 %42
OpBranch %43
%43 = OpLabel
%45 = OpCompositeExtract %8 %21 0
%46 = OpCompositeExtract %8 %23 0
%47 = OpIAdd %8 %45 %46
%48 = OpIAdd %8 %47 %26
%49 = OpCompositeExtract %8 %28 0
%50 = OpIAdd %8 %48 %49
%51 = OpCompositeExtract %8 %30 0
%52 = OpIAdd %8 %50 %51
%54 = OpAccessChain %44 %16 %53
OpStore %54 %52
OpReturn
OpFunctionEnd