From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 8 Apr 2023 01:22:00 +0200 Subject: Move solution and projects to src --- src/Ryujinx.Graphics.GAL/BufferRange.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/Ryujinx.Graphics.GAL/BufferRange.cs (limited to 'src/Ryujinx.Graphics.GAL/BufferRange.cs') diff --git a/src/Ryujinx.Graphics.GAL/BufferRange.cs b/src/Ryujinx.Graphics.GAL/BufferRange.cs new file mode 100644 index 00000000..ad9ebee4 --- /dev/null +++ b/src/Ryujinx.Graphics.GAL/BufferRange.cs @@ -0,0 +1,21 @@ +namespace Ryujinx.Graphics.GAL +{ + public readonly struct BufferRange + { + private static readonly BufferRange _empty = new BufferRange(BufferHandle.Null, 0, 0); + + public static BufferRange Empty => _empty; + + public BufferHandle Handle { get; } + + public int Offset { get; } + public int Size { get; } + + public BufferRange(BufferHandle handle, int offset, int size) + { + Handle = handle; + Offset = offset; + Size = size; + } + } +} \ No newline at end of file -- cgit v1.2.3