aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/BufferHandle.cs
blob: 7994e4eeaa08e1e9d529dbd40cecc0300b5a88d4 (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(0);

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