aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/State/RtControl.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/RtControl.cs
parent430faeb8ef9a5906af642a4a2be0eb6e878f812e (diff)
Add XML documentation to Ryujinx.Graphics.Gpu.State
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State/RtControl.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/State/RtControl.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/RtControl.cs b/Ryujinx.Graphics.Gpu/State/RtControl.cs
index 4c6fbc34..2e28660b 100644
--- a/Ryujinx.Graphics.Gpu/State/RtControl.cs
+++ b/Ryujinx.Graphics.Gpu/State/RtControl.cs
@@ -1,14 +1,26 @@
namespace Ryujinx.Graphics.Gpu.State
{
+ /// <summary>
+ /// Render target draw buffers control.
+ /// </summary>
struct RtControl
{
public uint Packed;
+ /// <summary>
+ /// Unpacks the number of active draw buffers.
+ /// </summary>
+ /// <returns>Number of active draw buffers</returns>
public int UnpackCount()
{
return (int)(Packed & 0xf);
}
+ /// <summary>
+ /// Unpacks the color attachment index for a given draw buffer.
+ /// </summary>
+ /// <param name="index">Index of the draw buffer</param>
+ /// <returns>Attachment index</returns>
public int UnpackPermutationIndex(int index)
{
return (int)((Packed >> (4 + index * 3)) & 7);