Some debug improvements

This commit is contained in:
Isaac Marovitz
2024-07-26 13:58:25 +01:00
committed by Isaac Marovitz
parent 3d12f7ef74
commit 42c6611563
3 changed files with 9 additions and 2 deletions

View File

@@ -35,7 +35,12 @@ namespace Ryujinx.Graphics.Metal
public void Use(MTLCommandQueue queue, IEncoderFactory stateManager)
{
CommandBuffer = queue.CommandBuffer();
MTLCommandBufferDescriptor descriptor = new();
#if DEBUG
descriptor.ErrorOptions = MTLCommandBufferErrorOption.EncoderExecutionStatus;
#endif
CommandBuffer = queue.CommandBuffer(descriptor);
Fence = new FenceHolder(CommandBuffer);
Encoders.Initialize(CommandBuffer, stateManager);