mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
Spanify Graphics Abstraction Layer (#1226)
* Spanify Graphics Abstraction Layer * Be explicit about BufferHandle size
This commit is contained in:
parent
57ebf9f8ca
commit
0c06df2ed3
24 changed files with 208 additions and 134 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue