aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/State/RtColorMask.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/RtColorMask.cs
parent430faeb8ef9a5906af642a4a2be0eb6e878f812e (diff)
Add XML documentation to Ryujinx.Graphics.Gpu.State
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State/RtColorMask.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/State/RtColorMask.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/RtColorMask.cs b/Ryujinx.Graphics.Gpu/State/RtColorMask.cs
index 5992673f..4aa5c331 100644
--- a/Ryujinx.Graphics.Gpu/State/RtColorMask.cs
+++ b/Ryujinx.Graphics.Gpu/State/RtColorMask.cs
@@ -1,24 +1,44 @@
namespace Ryujinx.Graphics.Gpu.State
{
+ /// <summary>
+ /// Render target color buffer mask.
+ /// This defines which color channels are written to the color buffer.
+ /// </summary>
struct RtColorMask
{
public uint Packed;
+ /// <summary>
+ /// Unpacks red channel enable.
+ /// </summary>
+ /// <returns>True to write the new red channel color, false to keep the old value</returns>
public bool UnpackRed()
{
return (Packed & 0x1) != 0;
}
+ /// <summary>
+ /// Unpacks green channel enable.
+ /// </summary>
+ /// <returns>True to write the new green channel color, false to keep the old value</returns>
public bool UnpackGreen()
{
return (Packed & 0x10) != 0;
}
+ /// <summary>
+ /// Unpacks blue channel enable.
+ /// </summary>
+ /// <returns>True to write the new blue channel color, false to keep the old value</returns>
public bool UnpackBlue()
{
return (Packed & 0x100) != 0;
}
+ /// <summary>
+ /// Unpacks alpha channel enable.
+ /// </summary>
+ /// <returns>True to write the new alpha channel color, false to keep the old value</returns>
public bool UnpackAlpha()
{
return (Packed & 0x1000) != 0;