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