aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs
index 2a831356..c90dea41 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs
@@ -311,6 +311,15 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
{
return Attribute & 0x3fe00000;
}
+
+ /// <summary>
+ /// Unpacks the Maxwell attribute component type.
+ /// </summary>
+ /// <returns>Attribute component type</returns>
+ public uint UnpackType()
+ {
+ return (Attribute >> 27) & 7;
+ }
}
/// <summary>
@@ -759,8 +768,8 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
public fixed uint Reserved10B0[18];
public uint ClearFlags;
public fixed uint Reserved10FC[25];
- public Array16<VertexAttribState> VertexAttribState;
- public fixed uint Reserved11A0[31];
+ public Array32<VertexAttribState> VertexAttribState;
+ public fixed uint Reserved11E0[15];
public RtControl RtControl;
public fixed uint Reserved1220[2];
public Size3D RtDepthStencilSize;