Spanify Graphics Abstraction Layer (#1226)

* Spanify Graphics Abstraction Layer

* Be explicit about BufferHandle size
This commit is contained in:
gdkchan
2020-05-23 06:46:09 -03:00
committed by GitHub
parent cc8dbdd3fb
commit 5011640b30
24 changed files with 208 additions and 134 deletions

View File

@ -2,18 +2,18 @@ namespace Ryujinx.Graphics.GAL
{
public struct BufferRange
{
private static BufferRange _empty = new BufferRange(null, 0, 0);
private static readonly BufferRange _empty = new BufferRange(BufferHandle.Null, 0, 0);
public BufferRange Empty => _empty;
public IBuffer Buffer { get; }
public BufferHandle Handle { get; }
public int Offset { get; }
public int Size { get; }
public BufferRange(IBuffer buffer, int offset, int size)
public BufferRange(BufferHandle handle, int offset, int size)
{
Buffer = buffer;
Handle = handle;
Offset = offset;
Size = size;
}