From cf147f1e4977a2dfe197d00341739b72a0e3a129 Mon Sep 17 00:00:00 2001 From: BaronKiko Date: Tue, 1 Jan 2019 17:08:15 +0000 Subject: Quad to triangle optimization (#552) * Fix minor bug with ordering leading to incorrect ordering * Converts quads and quadstrips to triangle * A new line for emmaus * Refactor to remove Ib from quadhelper methods * 20 extra brackets... --- Ryujinx.Graphics/QuadHelper.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics/QuadHelper.cs') diff --git a/Ryujinx.Graphics/QuadHelper.cs b/Ryujinx.Graphics/QuadHelper.cs index 0dfffce0..d5fea9ab 100644 --- a/Ryujinx.Graphics/QuadHelper.cs +++ b/Ryujinx.Graphics/QuadHelper.cs @@ -4,17 +4,17 @@ namespace Ryujinx.Graphics { static class QuadHelper { - public static int ConvertIbSizeQuadsToTris(int Size) + public static int ConvertSizeQuadsToTris(int Size) { return Size <= 0 ? 0 : (Size / 4) * 6; } - public static int ConvertIbSizeQuadStripToTris(int Size) + public static int ConvertSizeQuadStripToTris(int Size) { return Size <= 1 ? 0 : ((Size - 2) / 2) * 6; } - public static byte[] ConvertIbQuadsToTris(byte[] Data, int EntrySize, int Count) + public static byte[] ConvertQuadsToTris(byte[] Data, int EntrySize, int Count) { int PrimitivesCount = Count / 4; @@ -46,7 +46,7 @@ namespace Ryujinx.Graphics return Output; } - public static byte[] ConvertIbQuadStripToTris(byte[] Data, int EntrySize, int Count) + public static byte[] ConvertQuadStripToTris(byte[] Data, int EntrySize, int Count) { int PrimitivesCount = (Count - 2) / 2; -- cgit v1.2.3