From cb70e7bb30e8ecf5bcdd58b976f2ed5ea8cff947 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 21 Dec 2022 15:08:12 -0300 Subject: Fix DrawArrays vertex buffer size (#4141) --- Ryujinx.Graphics.Gpu/Engine/Threed/DrawState.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/Engine/Threed/DrawState.cs') diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/DrawState.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/DrawState.cs index fd1cb0ea..42ec2442 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Threed/DrawState.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Threed/DrawState.cs @@ -17,6 +17,16 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed /// public int IndexCount; + /// + /// First vertex used on non-indexed draws. This value is stored somewhere else on indexed draws. + /// + public int DrawFirstVertex; + + /// + /// Vertex count used on non-indexed draws. Indexed draws have a index count instead. + /// + public int DrawVertexCount; + /// /// Indicates if the next draw will be a indexed draw. /// -- cgit v1.2.3