diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 8ae89131a..de6e6abd6 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();