From 9948a7be53a9846b9de493653aa76819ff1b9bd3 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 29 Mar 2020 23:11:24 -0300 Subject: Support constant attributes (with a value of zero) (#1066) * Support constant attributes (with a value of zero) * Remove extra line --- Ryujinx.Graphics.Gpu/State/VertexAttribState.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/State') diff --git a/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs b/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs index 897da797..c22b1ca9 100644 --- a/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs +++ b/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs @@ -16,6 +16,15 @@ namespace Ryujinx.Graphics.Gpu.State return (int)(Attribute & 0x1f); } + /// + /// Unpacks the attribute constant flag. + /// + /// True if the attribute is constant, false otherwise + public bool UnpackIsConstant() + { + return (Attribute & 0x40) != 0; + } + /// /// Unpacks the offset, in bytes, of the attribute on the vertex buffer. /// -- cgit v1.2.3