mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 17:19:11 +01:00
114 lines
2.2 KiB
Plaintext
114 lines
2.2 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 67
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %65 "main"
|
|
OpExecutionMode %65 LocalSize 1 1 1
|
|
%2 = OpTypeVoid
|
|
%3 = OpTypeBool
|
|
%4 = OpTypeInt 32 0
|
|
%7 = OpTypeFunction %2
|
|
%8 = OpConstantTrue %3
|
|
%17 = OpTypeFunction %2 %3
|
|
%19 = OpTypePointer Function %3
|
|
%20 = OpConstantNull %3
|
|
%22 = OpConstantNull %3
|
|
%36 = OpConstantNull %3
|
|
%38 = OpConstantNull %3
|
|
%50 = OpConstant %4 0
|
|
%51 = OpConstant %4 1
|
|
%52 = OpConstant %4 5
|
|
%54 = OpTypePointer Function %4
|
|
%6 = OpFunction %2 None %7
|
|
%5 = OpLabel
|
|
OpBranch %9
|
|
%9 = OpLabel
|
|
OpBranch %10
|
|
%10 = OpLabel
|
|
OpLoopMerge %11 %13 None
|
|
OpBranch %12
|
|
%12 = OpLabel
|
|
OpBranch %13
|
|
%13 = OpLabel
|
|
OpBranchConditional %8 %11 %10
|
|
%11 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%16 = OpFunction %2 None %17
|
|
%15 = OpFunctionParameter %3
|
|
%14 = OpLabel
|
|
%18 = OpVariable %19 Function %20
|
|
%21 = OpVariable %19 Function %22
|
|
OpBranch %23
|
|
%23 = OpLabel
|
|
OpBranch %24
|
|
%24 = OpLabel
|
|
OpLoopMerge %25 %27 None
|
|
OpBranch %26
|
|
%26 = OpLabel
|
|
OpBranch %27
|
|
%27 = OpLabel
|
|
OpStore %18 %15
|
|
%28 = OpLoad %3 %18
|
|
%29 = OpLogicalNotEqual %3 %15 %28
|
|
OpStore %21 %29
|
|
%30 = OpLoad %3 %21
|
|
%31 = OpLogicalEqual %3 %15 %30
|
|
OpBranchConditional %31 %25 %24
|
|
%25 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%34 = OpFunction %2 None %17
|
|
%33 = OpFunctionParameter %3
|
|
%32 = OpLabel
|
|
%35 = OpVariable %19 Function %36
|
|
%37 = OpVariable %19 Function %38
|
|
OpBranch %39
|
|
%39 = OpLabel
|
|
OpBranch %40
|
|
%40 = OpLabel
|
|
OpLoopMerge %41 %43 None
|
|
OpBranch %42
|
|
%42 = OpLabel
|
|
OpStore %35 %33
|
|
%44 = OpLoad %3 %35
|
|
%45 = OpLogicalNotEqual %3 %33 %44
|
|
OpStore %37 %45
|
|
OpBranch %43
|
|
%43 = OpLabel
|
|
%46 = OpLoad %3 %37
|
|
%47 = OpLogicalEqual %3 %33 %46
|
|
OpBranchConditional %47 %41 %40
|
|
%41 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%49 = OpFunction %2 None %7
|
|
%48 = OpLabel
|
|
%53 = OpVariable %54 Function %50
|
|
OpBranch %55
|
|
%55 = OpLabel
|
|
OpBranch %56
|
|
%56 = OpLabel
|
|
OpLoopMerge %57 %59 None
|
|
OpBranch %58
|
|
%58 = OpLabel
|
|
%60 = OpLoad %4 %53
|
|
%61 = OpIAdd %4 %60 %51
|
|
OpStore %53 %61
|
|
OpBranch %59
|
|
%59 = OpLabel
|
|
%62 = OpLoad %4 %53
|
|
%63 = OpIEqual %3 %62 %52
|
|
OpBranchConditional %63 %57 %56
|
|
%57 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%65 = OpFunction %2 None %7
|
|
%64 = OpLabel
|
|
OpBranch %66
|
|
%66 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd |