aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/BufferRange.cs
blob: 9a030c80897b4e8fe3289f2b9a3bd7b529e2e08c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace Ryujinx.Graphics.GAL
{
    public 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;
        }
    }
}