mirror of
https://github.com/Ryujinx/Opentk.git
synced 2026-07-05 20:04:47 +00:00
14 lines
276 B
C#
14 lines
276 B
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace OpenTK.Graphics.Vulkan
|
|
{
|
|
public static unsafe class UnsafeEx
|
|
{
|
|
public static IntPtr AsIntPtr<T>(ref T obj)
|
|
{
|
|
return new IntPtr(Unsafe.AsPointer(ref obj));
|
|
}
|
|
}
|
|
}
|