aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/PipelineConverter.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2022-09-20 22:38:48 +0100
committerGitHub <noreply@github.com>2022-09-20 18:38:48 -0300
commit4c0eb91d7e6bdbe42ffa6e950e3288f8066de089 (patch)
tree96b1325134798f4bed03989913e1ba32dae9ffa5 /Ryujinx.Graphics.Vulkan/PipelineConverter.cs
parentda75a9a6ea89787c551b20e068a2bed8a8dc4f92 (diff)
Convert Quads to Triangles in Vulkan (#3715)1.1.278
* Add Index Buffer conversion for quads to Vulkan Also adds a reusable repeating pattern index buffer to use for non-indexed draws, and generalizes the conversion cache for buffers. * Fix some issues * End render pass before conversion * Resume transform feedback after we ensure we're in a pass. * Always generate UInt32 type indices for topology conversion * No it's not. * Remove unused code * Rely on TopologyRemap to convert quads to tris. * Remove double newline * Ensure render pass ends before stride or I8 conversion
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/PipelineConverter.cs')
-rw-r--r--Ryujinx.Graphics.Vulkan/PipelineConverter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Vulkan/PipelineConverter.cs b/Ryujinx.Graphics.Vulkan/PipelineConverter.cs
index c09303514..3ff111e87 100644
--- a/Ryujinx.Graphics.Vulkan/PipelineConverter.cs
+++ b/Ryujinx.Graphics.Vulkan/PipelineConverter.cs
@@ -199,7 +199,7 @@ namespace Ryujinx.Graphics.Vulkan
199 199
200 pipeline.StencilTestEnable = state.StencilTest.TestEnable; 200 pipeline.StencilTestEnable = state.StencilTest.TestEnable;
201 201
202 pipeline.Topology = state.Topology.Convert(); 202 pipeline.Topology = gd.TopologyRemap(state.Topology).Convert();
203 203
204 int vaCount = Math.Min(Constants.MaxVertexAttributes, state.VertexAttribCount); 204 int vaCount = Math.Min(Constants.MaxVertexAttributes, state.VertexAttribCount);
205 int vbCount = Math.Min(Constants.MaxVertexBuffers, state.VertexBufferCount); 205 int vbCount = Math.Min(Constants.MaxVertexBuffers, state.VertexBufferCount);