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