BeginComputePass

This commit is contained in:
Isaac Marovitz 2023-07-29 01:18:51 -04:00 committed by Isaac Marovitz
parent 3d42543f03
commit 96bbc86331

View file

@ -74,6 +74,17 @@ namespace Ryujinx.Graphics.Metal
return blitCommandEncoder; return blitCommandEncoder;
} }
public MTLComputeCommandEncoder BeginComputePass()
{
EndCurrentPass();
var descriptor = new MTLComputePassDescriptor { };
var computeCommandEncoder = _commandBuffer.ComputeCommandEncoder(descriptor);
_currentEncoder = computeCommandEncoder;
return computeCommandEncoder;
}
public void Present() public void Present()
{ {
EndCurrentPass(); EndCurrentPass();