diff options
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State/RtControl.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/State/RtControl.cs | 12 |
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); |
