2022-12-05 13:47:39 +00:00
|
|
|
|
using System.Runtime.InteropServices;
|
2020-05-23 09:46:09 +00:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
|
{
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 8)]
|
2022-12-05 13:47:39 +00:00
|
|
|
|
public readonly record struct BufferHandle
|
2020-05-23 09:46:09 +00:00
|
|
|
|
{
|
|
|
|
|
private readonly ulong _value;
|
|
|
|
|
|
|
|
|
|
public static BufferHandle Null => new BufferHandle(0);
|
|
|
|
|
|
|
|
|
|
private BufferHandle(ulong value) => _value = value;
|
|
|
|
|
}
|
|
|
|
|
}
|