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
|
||||
{
|
||||
/// <summary>
|
||||
/// Indirect draw type, which can be indexed or non-indexed, with or without a draw count.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
enum IndirectDrawType
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Shader.Decoders
|
||||
{
|
||||
[Flags]
|
||||
enum InstProps : ushort
|
||||
{
|
||||
None = 0,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
namespace Ryujinx.Graphics.Shader.Translation
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Shader.Translation
|
||||
{
|
||||
[Flags]
|
||||
enum AggregateType
|
||||
{
|
||||
Invalid,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
namespace Ryujinx.Graphics.Texture.Encoders
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Texture.Encoders
|
||||
{
|
||||
[Flags]
|
||||
enum EncodeMode
|
||||
{
|
||||
Fast,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Kernel.Common
|
||||
{
|
||||
[Flags]
|
||||
enum KernelResult
|
||||
{
|
||||
Success = 0,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Kernel.Process
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Kernel.Process
|
||||
{
|
||||
[Flags]
|
||||
enum ProcessCreationFlags
|
||||
{
|
||||
Is64Bit = 1 << 0,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||
{
|
||||
[Flags]
|
||||
enum ThreadSchedState : ushort
|
||||
{
|
||||
LowMask = 0xf,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.Tests.Unicorn
|
||||
{
|
||||
[Flags]
|
||||
public enum MemoryPermission
|
||||
{
|
||||
NONE = 0,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue