From 96bbc86331707c36443e17343990789fcf5c4b43 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sat, 29 Jul 2023 01:18:51 -0400 Subject: [PATCH] BeginComputePass --- src/Ryujinx.Graphics.Metal/Pipeline.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 8ae89131a6..de6e6abd6c 100644 --- a/src/Ryujinx.Graphics.Metal/Pipeline.cs +++ b/src/Ryujinx.Graphics.Metal/Pipeline.cs @@ -74,6 +74,17 @@ namespace Ryujinx.Graphics.Metal return blitCommandEncoder; } + public MTLComputeCommandEncoder BeginComputePass() + { + EndCurrentPass(); + + var descriptor = new MTLComputePassDescriptor { }; + var computeCommandEncoder = _commandBuffer.ComputeCommandEncoder(descriptor); + + _currentEncoder = computeCommandEncoder; + return computeCommandEncoder; + } + public void Present() { EndCurrentPass();