Mark enums used with bitwise operators [Flags]

This commit is contained in:
Isaac Marovitz 2022-12-06 14:05:49 -05:00
parent 121296834a
commit 9d28a4d768
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
12 changed files with 39 additions and 3 deletions

View file

@ -1,8 +1,11 @@
using System;
namespace Ryujinx.Graphics.Gpu.Engine.Threed
{
/// <summary>
/// Indirect draw type, which can be indexed or non-indexed, with or without a draw count.
/// </summary>
[Flags]
enum IndirectDrawType
{
/// <summary>

View file

@ -1,3 +1,5 @@
using System;
namespace Ryujinx.Graphics.Shader.Decoders
{
enum AlSize
@ -710,6 +712,7 @@ namespace Ryujinx.Graphics.Shader.Decoders
TexSamplerBorderColor = 22,
}
[Flags]
enum VectorSelect
{
U8B0 = 0,

View file

@ -1,5 +1,8 @@
using System;
namespace Ryujinx.Graphics.Shader.Decoders
{
[Flags]
enum InstProps : ushort
{
None = 0,

View file

@ -1,5 +1,8 @@
namespace Ryujinx.Graphics.Shader.Translation
using System;
namespace Ryujinx.Graphics.Shader.Translation
{
[Flags]
enum AggregateType
{
Invalid,

View file

@ -1,5 +1,8 @@
namespace Ryujinx.Graphics.Texture.Encoders
using System;
namespace Ryujinx.Graphics.Texture.Encoders
{
[Flags]
enum EncodeMode
{
Fast,

View file

@ -1,5 +1,6 @@
using Ryujinx.Common.Memory;
using Silk.NET.Vulkan;
using System;
namespace Ryujinx.Graphics.Vulkan
{
@ -24,6 +25,7 @@ namespace Ryujinx.Graphics.Vulkan
public int ViewportsCount;
public Array16<Viewport> Viewports;
[Flags]
private enum DirtyFlags
{
None = 0,

View file

@ -1,7 +1,9 @@
using System;
using System.IO;
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
[Flags]
public enum Cv
{
None,
@ -10,6 +12,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
Restricted = 4
}
[Flags]
public enum Reference
{
None,

View file

@ -1,5 +1,8 @@
using System;
namespace Ryujinx.HLE.HOS.Kernel.Common
{
[Flags]
enum KernelResult
{
Success = 0,

View file

@ -1,5 +1,8 @@
namespace Ryujinx.HLE.HOS.Kernel.Process
using System;
namespace Ryujinx.HLE.HOS.Kernel.Process
{
[Flags]
enum ProcessCreationFlags
{
Is64Bit = 1 << 0,

View file

@ -1,5 +1,8 @@
using System;
namespace Ryujinx.HLE.HOS.Kernel.Threading
{
[Flags]
enum ThreadSchedState : ushort
{
LowMask = 0xf,

View file

@ -1,5 +1,8 @@
using System;
namespace Ryujinx.Tests.Unicorn
{
[Flags]
public enum MemoryPermission
{
NONE = 0,

View file

@ -42,6 +42,8 @@
// "Mask" in their name, and a parallel enum that has the shift
// amount (1 << x) for each corresponding enumerant.
using System;
namespace Spv
{
@ -341,6 +343,7 @@ namespace Spv
ZeroExtend = 13,
}
[Flags]
public enum ImageOperandsMask
{
MaskNone = 0,
@ -717,6 +720,7 @@ namespace Spv
Volatile = 15,
}
[Flags]
public enum MemorySemanticsMask
{
MaskNone = 0,