2019-10-13 02:02:07 -04:00
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
{
|
2022-12-05 08:47:39 -05:00
|
|
|
public readonly struct BufferRange
|
2019-10-13 02:02:07 -04:00
|
|
|
{
|
2020-05-23 05:46:09 -04:00
|
|
|
private static readonly BufferRange _empty = new BufferRange(BufferHandle.Null, 0, 0);
|
2019-10-13 02:02:07 -04:00
|
|
|
|
2020-10-25 16:23:42 -04:00
|
|
|
public static BufferRange Empty => _empty;
|
2019-10-13 02:02:07 -04:00
|
|
|
|
2020-05-23 05:46:09 -04:00
|
|
|
public BufferHandle Handle { get; }
|
2019-10-13 02:02:07 -04:00
|
|
|
|
|
|
|
public int Offset { get; }
|
|
|
|
public int Size { get; }
|
|
|
|
|
2020-05-23 05:46:09 -04:00
|
|
|
public BufferRange(BufferHandle handle, int offset, int size)
|
2019-10-13 02:02:07 -04:00
|
|
|
{
|
2020-05-23 05:46:09 -04:00
|
|
|
Handle = handle;
|
2019-10-13 02:02:07 -04:00
|
|
|
Offset = offset;
|
|
|
|
Size = size;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|