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