diff options
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/VulkanRenderer.cs')
-rw-r--r-- | Ryujinx.Graphics.Vulkan/VulkanRenderer.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs index 3776be9e..d92fff49 100644 --- a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs +++ b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs @@ -471,6 +471,25 @@ namespace Ryujinx.Graphics.Vulkan Logger.Notice.Print(LogClass.Gpu, $"{GpuVendor} {GpuRenderer} ({GpuVersion})"); } + public GAL.PrimitiveTopology TopologyRemap(GAL.PrimitiveTopology topology) + { + return topology switch + { + GAL.PrimitiveTopology.Quads => GAL.PrimitiveTopology.Triangles, + GAL.PrimitiveTopology.QuadStrip => GAL.PrimitiveTopology.TriangleStrip, + _ => topology + }; + } + + public bool TopologyUnsupported(GAL.PrimitiveTopology topology) + { + return topology switch + { + GAL.PrimitiveTopology.Quads => true, + _ => false + }; + } + public void Initialize(GraphicsDebugLevel logLevel) { SetupContext(logLevel); |