aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Memory/BufferBounds.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Memory/BufferBounds.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Memory/BufferBounds.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Memory/BufferBounds.cs b/Ryujinx.Graphics.Gpu/Memory/BufferBounds.cs
index 060171fb..5569b947 100644
--- a/Ryujinx.Graphics.Gpu/Memory/BufferBounds.cs
+++ b/Ryujinx.Graphics.Gpu/Memory/BufferBounds.cs
@@ -1,3 +1,5 @@
+using Ryujinx.Graphics.Shader;
+
namespace Ryujinx.Graphics.Gpu.Memory
{
/// <summary>
@@ -16,14 +18,21 @@ namespace Ryujinx.Graphics.Gpu.Memory
public ulong Size { get; }
/// <summary>
+ /// Buffer usage flags.
+ /// </summary>
+ public BufferUsageFlags Flags { get; }
+
+ /// <summary>
/// Creates a new buffer region.
/// </summary>
/// <param name="address">Region address</param>
/// <param name="size">Region size</param>
- public BufferBounds(ulong address, ulong size)
+ /// <param name="flags">Buffer usage flags</param>
+ public BufferBounds(ulong address, ulong size, BufferUsageFlags flags = BufferUsageFlags.None)
{
Address = address;
Size = size;
+ Flags = flags;
}
}
} \ No newline at end of file