aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Engine/Threed/RenderTargetUpdateFlags.cs
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /src/Ryujinx.Graphics.Gpu/Engine/Threed/RenderTargetUpdateFlags.cs
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Engine/Threed/RenderTargetUpdateFlags.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Engine/Threed/RenderTargetUpdateFlags.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Engine/Threed/RenderTargetUpdateFlags.cs b/src/Ryujinx.Graphics.Gpu/Engine/Threed/RenderTargetUpdateFlags.cs
new file mode 100644
index 00000000..cf2e818c
--- /dev/null
+++ b/src/Ryujinx.Graphics.Gpu/Engine/Threed/RenderTargetUpdateFlags.cs
@@ -0,0 +1,41 @@
+using System;
+
+namespace Ryujinx.Graphics.Gpu.Engine.Threed
+{
+ /// <summary>
+ /// Flags indicating how the render targets should be updated.
+ /// </summary>
+ [Flags]
+ enum RenderTargetUpdateFlags
+ {
+ /// <summary>
+ /// No flags.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// Get render target index from the control register.
+ /// </summary>
+ UseControl = 1 << 0,
+
+ /// <summary>
+ /// Indicates that all render targets are 2D array textures.
+ /// </summary>
+ Layered = 1 << 1,
+
+ /// <summary>
+ /// Indicates that only a single color target will be used.
+ /// </summary>
+ SingleColor = 1 << 2,
+
+ /// <summary>
+ /// Indicates that the depth-stencil target will be used.
+ /// </summary>
+ UpdateDepthStencil = 1 << 3,
+
+ /// <summary>
+ /// Default update flags for draw.
+ /// </summary>
+ UpdateAll = UseControl | UpdateDepthStencil
+ }
+}