TextureFlags.cs
 1  using System;
 2  using System.Diagnostics.CodeAnalysis;
 3  
 4  namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
 5  {
 6      [Flags]
 7      [SuppressMessage("Design", "CA1069: Enums values should not be duplicated")]
 8      enum TextureFlags
 9      {
10          None = 0,
11          Bindless = 1 << 0,
12          Gather = 1 << 1,
13          Derivatives = 1 << 2,
14          IntCoords = 1 << 3,
15          LodBias = 1 << 4,
16          LodLevel = 1 << 5,
17          Offset = 1 << 6,
18          Offsets = 1 << 7,
19          Coherent = 1 << 8,
20  
21          AtomicMask = 15 << 16,
22  
23          Add = 0 << 16,
24          Minimum = 1 << 16,
25          Maximum = 2 << 16,
26          Increment = 3 << 16,
27          Decrement = 4 << 16,
28          BitwiseAnd = 5 << 16,
29          BitwiseOr = 6 << 16,
30          BitwiseXor = 7 << 16,
31          Swap = 8 << 16,
32          CAS = 9 << 16,
33      }
34  }