mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 23:11:01 +01:00
85 lines
2.1 KiB
Plaintext
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 %5 0 Offset 0
|
|
OpMemberDecorate %5 1 Offset 16
|
|
OpMemberDecorate %7 0 Offset 0
|
|
OpMemberDecorate %7 1 Offset 4
|
|
OpMemberDecorate %7 2 Offset 8
|
|
OpDecorate %9 ArrayStride 4
|
|
OpMemberDecorate %12 0 Offset 0
|
|
OpMemberDecorate %13 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 = OpTypeFloat 32
|
|
%3 = OpTypeVector %4 4
|
|
%5 = OpTypeStruct %3 %4
|
|
%6 = OpTypeInt 32 0
|
|
%7 = OpTypeStruct %4 %6 %4
|
|
%8 = OpTypeBool
|
|
%10 = OpConstant %6 1
|
|
%9 = OpTypeArray %6 %10
|
|
%11 = OpTypeVector %6 3
|
|
%12 = OpTypeStruct %6
|
|
%13 = OpTypeStruct %6
|
|
%15 = OpTypeInt 32 1
|
|
%14 = OpConstant %15 1
|
|
%17 = OpTypePointer Workgroup %9
|
|
%16 = OpVariable %17 Workgroup
|
|
%20 = OpTypePointer Input %11
|
|
%19 = OpVariable %20 Input
|
|
%22 = OpVariable %20 Input
|
|
%25 = OpTypePointer Input %6
|
|
%24 = OpVariable %25 Input
|
|
%27 = OpVariable %20 Input
|
|
%29 = OpVariable %20 Input
|
|
%32 = OpTypeFunction %2
|
|
%34 = OpConstantNull %9
|
|
%35 = OpConstantNull %11
|
|
%36 = OpTypeVector %8 3
|
|
%41 = OpConstant %6 2
|
|
%42 = OpConstant %6 264
|
|
%44 = OpTypePointer Workgroup %6
|
|
%53 = OpConstant %6 0
|
|
%31 = OpFunction %2 None %32
|
|
%18 = OpLabel
|
|
%21 = OpLoad %11 %19
|
|
%23 = OpLoad %11 %22
|
|
%26 = OpLoad %6 %24
|
|
%28 = OpLoad %11 %27
|
|
%30 = OpLoad %11 %29
|
|
OpBranch %33
|
|
%33 = OpLabel
|
|
%37 = OpIEqual %36 %23 %35
|
|
%38 = OpAll %8 %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 %6 %21 0
|
|
%46 = OpCompositeExtract %6 %23 0
|
|
%47 = OpIAdd %6 %45 %46
|
|
%48 = OpIAdd %6 %47 %26
|
|
%49 = OpCompositeExtract %6 %28 0
|
|
%50 = OpIAdd %6 %48 %49
|
|
%51 = OpCompositeExtract %6 %30 0
|
|
%52 = OpIAdd %6 %50 %51
|
|
%54 = OpAccessChain %44 %16 %53
|
|
OpStore %54 %52
|
|
OpReturn
|
|
OpFunctionEnd |