diff options
| author | BaronKiko <BaronKiko@users.noreply.github.com> | 2019-01-01 17:08:15 +0000 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2019-01-01 15:08:15 -0200 |
| commit | cf147f1e4977a2dfe197d00341739b72a0e3a129 (patch) | |
| tree | 77c6ac75933f1d1da2d232ea530808af81785fff /Ryujinx.Graphics/QuadHelper.cs | |
| parent | 016156c288e4409d84e75ec77ee4fecb20b13c00 (diff) | |
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...
Diffstat (limited to 'Ryujinx.Graphics/QuadHelper.cs')
| -rw-r--r-- | Ryujinx.Graphics/QuadHelper.cs | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
