mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 20:50:18 +00:00
Mark enums used with bitwise operators [Flags]
This commit is contained in:
parent
121296834a
commit
9d28a4d768
12 changed files with 39 additions and 3 deletions
|
@ -1,8 +1,11 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indirect draw type, which can be indexed or non-indexed, with or without a draw count.
|
/// Indirect draw type, which can be indexed or non-indexed, with or without a draw count.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Flags]
|
||||||
enum IndirectDrawType
|
enum IndirectDrawType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.Graphics.Shader.Decoders
|
namespace Ryujinx.Graphics.Shader.Decoders
|
||||||
{
|
{
|
||||||
enum AlSize
|
enum AlSize
|
||||||
|
@ -710,6 +712,7 @@ namespace Ryujinx.Graphics.Shader.Decoders
|
||||||
TexSamplerBorderColor = 22,
|
TexSamplerBorderColor = 22,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Flags]
|
||||||
enum VectorSelect
|
enum VectorSelect
|
||||||
{
|
{
|
||||||
U8B0 = 0,
|
U8B0 = 0,
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.Graphics.Shader.Decoders
|
namespace Ryujinx.Graphics.Shader.Decoders
|
||||||
{
|
{
|
||||||
|
[Flags]
|
||||||
enum InstProps : ushort
|
enum InstProps : ushort
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
namespace Ryujinx.Graphics.Shader.Translation
|
using System;
|
||||||
|
|
||||||
|
namespace Ryujinx.Graphics.Shader.Translation
|
||||||
{
|
{
|
||||||
|
[Flags]
|
||||||
enum AggregateType
|
enum AggregateType
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
namespace Ryujinx.Graphics.Texture.Encoders
|
using System;
|
||||||
|
|
||||||
|
namespace Ryujinx.Graphics.Texture.Encoders
|
||||||
{
|
{
|
||||||
|
[Flags]
|
||||||
enum EncodeMode
|
enum EncodeMode
|
||||||
{
|
{
|
||||||
Fast,
|
Fast,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using Ryujinx.Common.Memory;
|
using Ryujinx.Common.Memory;
|
||||||
using Silk.NET.Vulkan;
|
using Silk.NET.Vulkan;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.Graphics.Vulkan
|
namespace Ryujinx.Graphics.Vulkan
|
||||||
{
|
{
|
||||||
|
@ -24,6 +25,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
public int ViewportsCount;
|
public int ViewportsCount;
|
||||||
public Array16<Viewport> Viewports;
|
public Array16<Viewport> Viewports;
|
||||||
|
|
||||||
|
[Flags]
|
||||||
private enum DirtyFlags
|
private enum DirtyFlags
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
{
|
{
|
||||||
|
[Flags]
|
||||||
public enum Cv
|
public enum Cv
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
|
@ -10,6 +12,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
Restricted = 4
|
Restricted = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Flags]
|
||||||
public enum Reference
|
public enum Reference
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.HLE.HOS.Kernel.Common
|
namespace Ryujinx.HLE.HOS.Kernel.Common
|
||||||
{
|
{
|
||||||
|
[Flags]
|
||||||
enum KernelResult
|
enum KernelResult
|
||||||
{
|
{
|
||||||
Success = 0,
|
Success = 0,
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
namespace Ryujinx.HLE.HOS.Kernel.Process
|
using System;
|
||||||
|
|
||||||
|
namespace Ryujinx.HLE.HOS.Kernel.Process
|
||||||
{
|
{
|
||||||
|
[Flags]
|
||||||
enum ProcessCreationFlags
|
enum ProcessCreationFlags
|
||||||
{
|
{
|
||||||
Is64Bit = 1 << 0,
|
Is64Bit = 1 << 0,
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.HLE.HOS.Kernel.Threading
|
namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||||
{
|
{
|
||||||
|
[Flags]
|
||||||
enum ThreadSchedState : ushort
|
enum ThreadSchedState : ushort
|
||||||
{
|
{
|
||||||
LowMask = 0xf,
|
LowMask = 0xf,
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.Tests.Unicorn
|
namespace Ryujinx.Tests.Unicorn
|
||||||
{
|
{
|
||||||
|
[Flags]
|
||||||
public enum MemoryPermission
|
public enum MemoryPermission
|
||||||
{
|
{
|
||||||
NONE = 0,
|
NONE = 0,
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
// "Mask" in their name, and a parallel enum that has the shift
|
// "Mask" in their name, and a parallel enum that has the shift
|
||||||
// amount (1 << x) for each corresponding enumerant.
|
// amount (1 << x) for each corresponding enumerant.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Spv
|
namespace Spv
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -341,6 +343,7 @@ namespace Spv
|
||||||
ZeroExtend = 13,
|
ZeroExtend = 13,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Flags]
|
||||||
public enum ImageOperandsMask
|
public enum ImageOperandsMask
|
||||||
{
|
{
|
||||||
MaskNone = 0,
|
MaskNone = 0,
|
||||||
|
@ -717,6 +720,7 @@ namespace Spv
|
||||||
Volatile = 15,
|
Volatile = 15,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Flags]
|
||||||
public enum MemorySemanticsMask
|
public enum MemorySemanticsMask
|
||||||
{
|
{
|
||||||
MaskNone = 0,
|
MaskNone = 0,
|
||||||
|
|
Loading…
Reference in a new issue