mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-04 04:12:24 -07:00
BeginComputePass
This commit is contained in:
committed by
Isaac Marovitz
parent
3d42543f03
commit
96bbc86331
@@ -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();
|
||||||
|
Reference in New Issue
Block a user