0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 08:05:47 +00:00
Ryujinx/Ryujinx.Graphics.GAL/BufferRange.cs

21 lines
524 B
C#
Raw Normal View History

2019-10-13 06:02:07 +00:00
namespace Ryujinx.Graphics.GAL
{
public readonly struct BufferRange
2019-10-13 06:02:07 +00:00
{
private static readonly BufferRange _empty = new BufferRange(BufferHandle.Null, 0, 0);
2019-10-13 06:02:07 +00:00
public static BufferRange Empty => _empty;
2019-10-13 06:02:07 +00:00
public BufferHandle Handle { get; }
2019-10-13 06:02:07 +00:00
public int Offset { get; }
public int Size { get; }
public BufferRange(BufferHandle handle, int offset, int size)
2019-10-13 06:02:07 +00:00
{
Handle = handle;
2019-10-13 06:02:07 +00:00
Offset = offset;
Size = size;
}
}
}