mirror of
https://github.com/Ryujinx-NX/Ryujinx.git
synced 2024-11-14 21:17:43 -07:00
Some debug improvements
This commit is contained in:
parent
c2be81c805
commit
464519e747
@ -35,7 +35,12 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
|
|
||||||
public void Use(MTLCommandQueue queue, IEncoderFactory stateManager)
|
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);
|
Fence = new FenceHolder(CommandBuffer);
|
||||||
|
|
||||||
Encoders.Initialize(CommandBuffer, stateManager);
|
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)
|
public static MTLPrimitiveType Convert(this PrimitiveTopology topology)
|
||||||
{
|
{
|
||||||
return topology switch
|
return topology switch
|
||||||
|
@ -59,6 +59,9 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
|
|||||||
|
|
||||||
public static void Declare(CodeGenContext context, StructuredProgramInfo info)
|
public static void Declare(CodeGenContext context, StructuredProgramInfo info)
|
||||||
{
|
{
|
||||||
|
// TODO: Re-enable this warning
|
||||||
|
context.AppendLine("#pragma clang diagnostic ignored \"-Wunused-variable\"");
|
||||||
|
context.AppendLine();
|
||||||
context.AppendLine("#include <metal_stdlib>");
|
context.AppendLine("#include <metal_stdlib>");
|
||||||
context.AppendLine("#include <simd/simd.h>");
|
context.AppendLine("#include <simd/simd.h>");
|
||||||
context.AppendLine();
|
context.AppendLine();
|
||||||
|
Loading…
Reference in New Issue
Block a user