mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-22 17:56:59 +01:00
4738113f29
* chore : disable unwanted warnings and minor code cleanup * chore : remove more warnings * fix : reorder struct correctly * fix : restore _isKernel and remove useless comment * fix : copy/paste error * fix : restore CallMethod call * fix : whitespace * chore : clean using * feat : remove warnings * fix : simplify warning removal on struct * fix : revert fields deletion and code clean up * fix : re-add RE value * fix : typo
49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
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
|
|
{
|
|
#pragma warning disable CS0649
|
|
public uint Packed;
|
|
#pragma warning restore CS0649
|
|
|
|
/// <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;
|
|
}
|
|
}
|
|
}
|