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