blob: 0db83da8058d3a5e9ef83aa006c064b1d5b0a3fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
namespace Ryujinx.Graphics.Gpu.Engine.Types
{
/// <summary>
/// Boolean value, stored as a 32-bits integer in memory.
/// </summary>
readonly struct Boolean32
{
private readonly uint _value;
public Boolean32(uint value)
{
_value = value;
}
public static implicit operator bool(Boolean32 value)
{
return (value._value & 1) != 0;
}
}
}
|