2019-10-26 13:50:52 -04:00
|
|
|
namespace Ryujinx.Graphics.Gpu.State
|
|
|
|
{
|
2019-12-31 11:32:06 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Boolean value, stored as a 32-bits integer in memory.
|
|
|
|
/// </summary>
|
2019-10-26 13:50:52 -04:00
|
|
|
struct Boolean32
|
|
|
|
{
|
2020-04-20 17:59:59 -04:00
|
|
|
#pragma warning disable CS0649
|
2019-10-26 13:50:52 -04:00
|
|
|
private uint _value;
|
2020-04-20 17:59:59 -04:00
|
|
|
#pragma warning restore CS0649
|
2019-10-26 13:50:52 -04:00
|
|
|
|
|
|
|
public static implicit operator bool(Boolean32 value)
|
|
|
|
{
|
|
|
|
return (value._value & 1) != 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|