mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2026-02-21 23:36:49 -05:00
Some debug improvements
This commit is contained in:
committed by
Evan Husted
parent
cb0a1ce48a
commit
5220ee1dc8
@@ -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);
|
||||
|
||||
@@ -137,7 +137,6 @@ namespace Ryujinx.Graphics.Metal
|
||||
};
|
||||
}
|
||||
|
||||
// TODO: Metal does not have native support for Triangle Fans but it is possible to emulate with TriangleStrip and moving around the indices
|
||||
public static MTLPrimitiveType Convert(this PrimitiveTopology topology)
|
||||
{
|
||||
return topology switch
|
||||
|
||||
Reference in New Issue
Block a user