aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/BufferHandle.cs
blob: a2adea56a4bd84d4236a649220d3fb8986721187 (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;
    }
}