Patch some leaks and only perform copies on valid textures (#37)
This commit is contained in:
parent
01f41b8b0e
commit
fff3a4f8f8
6 changed files with 29 additions and 13 deletions
|
@ -176,15 +176,12 @@ namespace Ryujinx.Graphics.Metal
|
|||
|
||||
public readonly MTLComputeCommandEncoder CreateComputeCommandEncoder()
|
||||
{
|
||||
var descriptor = new MTLComputePassDescriptor();
|
||||
using var descriptor = new MTLComputePassDescriptor();
|
||||
var computeCommandEncoder = _pipeline.CommandBuffer.ComputeCommandEncoder(descriptor);
|
||||
|
||||
// Mark all state as dirty to ensure it is set on the encoder
|
||||
SignalDirty(DirtyFlags.ComputeAll);
|
||||
|
||||
// Cleanup
|
||||
descriptor.Dispose();
|
||||
|
||||
return computeCommandEncoder;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue