aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/BufferRange.cs
blob: ad9ebee48dbf9b9eccc98d4c4e54fcc6d6f502e7 (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 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;
        }
    }
}