aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/State/GpuStateTable.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-12-31 13:32:06 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commitd1c0a64e6a60b5c6f288c5d152e4f35fb587d988 (patch)
tree50a9f4fe9764715e3c2ff2b44e038533017324d1 /Ryujinx.Graphics.Gpu/State/GpuStateTable.cs
parent430faeb8ef9a5906af642a4a2be0eb6e878f812e (diff)
Add XML documentation to Ryujinx.Graphics.Gpu.State
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State/GpuStateTable.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/State/GpuStateTable.cs27
1 files changed, 26 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/GpuStateTable.cs b/Ryujinx.Graphics.Gpu/State/GpuStateTable.cs
index 268b1fdc..db8d141e 100644
--- a/Ryujinx.Graphics.Gpu/State/GpuStateTable.cs
+++ b/Ryujinx.Graphics.Gpu/State/GpuStateTable.cs
@@ -4,15 +4,37 @@ using System.Runtime.InteropServices;
namespace Ryujinx.Graphics.Gpu.State
{
+ /// <summary>
+ /// GPU State item sizes table.
+ /// </summary>
static class GpuStateTable
{
+ /// <summary>
+ /// GPU state table item, with size for structures, and count for indexed state data.
+ /// </summary>
public struct TableItem
{
+ /// <summary>
+ /// Offset of the data.
+ /// </summary>
public MethodOffset Offset { get; }
- public int Size { get; }
+ /// <summary>
+ /// Size in words.
+ /// </summary>
+ public int Size { get; }
+
+ /// <summary>
+ /// Count for indexed data, or 1 if not indexed.
+ /// </summary>
public int Count { get; }
+ /// <summary>
+ /// Constructs the table item structure.
+ /// </summary>
+ /// <param name="offset">Data offset</param>
+ /// <param name="type">Data type</param>
+ /// <param name="count">Data count, for indexed data</param>
public TableItem(MethodOffset offset, Type type, int count)
{
int sizeInBytes = Marshal.SizeOf(type);
@@ -25,6 +47,9 @@ namespace Ryujinx.Graphics.Gpu.State
}
}
+ /// <summary>
+ /// Table of GPU state structure sizes and counts.
+ /// </summary>
public static TableItem[] Table = new TableItem[]
{
new TableItem(MethodOffset.RtColorState, typeof(RtColorState), 8),