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

73 lines
1.9 KiB
Plaintext

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