1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-21 09:22:01 +00:00

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();