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