aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/BufferHandle.cs
blob: 5ba50d195d61fdeea07596e95875005adff59337 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System.Runtime.InteropServices;

namespace Ryujinx.Graphics.GAL
{
    [StructLayout(LayoutKind.Sequential, Size = 8)]
    public readonly record struct BufferHandle
    {
        private readonly ulong _value;

        public static BufferHandle Null => new BufferHandle(0);

        private BufferHandle(ulong value) => _value = value;
    }
}