aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/Methods.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-07-03 19:41:27 -0300
committerGitHub <noreply@github.com>2020-07-04 00:41:27 +0200
commitdbeb50684d24bf43c2bdbc087f6b1f52f385acf2 (patch)
tree587a270df01e8f8f7b189d5911cf368aa879a8e1 /Ryujinx.Graphics.Gpu/Engine/Methods.cs
parentb0d9ec8a8202039b21fb799707c8d26f37c4fbfd (diff)
Support inline index buffer data (#1351)
* Support inline index buffer data * Sort usings
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Methods.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs
index fc933131..af32c6bc 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs
@@ -78,6 +78,10 @@ namespace Ryujinx.Graphics.Gpu.Engine
state.RegisterCallback(MethodOffset.InvalidateTextures, InvalidateTextures);
state.RegisterCallback(MethodOffset.TextureBarrierTiled, TextureBarrierTiled);
+ state.RegisterCallback(MethodOffset.VbElementU8, VbElementU8);
+ state.RegisterCallback(MethodOffset.VbElementU16, VbElementU16);
+ state.RegisterCallback(MethodOffset.VbElementU32, VbElementU32);
+
state.RegisterCallback(MethodOffset.ResetCounter, ResetCounter);
state.RegisterCallback(MethodOffset.DrawEnd, DrawEnd);
@@ -726,7 +730,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
ulong size;
- if (_drawIndexed || stride == 0 || instanced)
+ if (_inlineIndexCount != 0 || _drawIndexed || stride == 0 || instanced)
{
// This size may be (much) larger than the real vertex buffer size.
// Avoid calculating it this way, unless we don't have any other option.