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