From 995a54fa2df82946441c9ec6446d7cd12236f8f7 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 11 Mar 2024 16:10:57 -0700 Subject: [PATCH] Debug Name API --- src/Refresh.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Refresh.cs b/src/Refresh.cs index fb33caa..e3ae9ae 100644 --- a/src/Refresh.cs +++ b/src/Refresh.cs @@ -718,6 +718,22 @@ namespace RefreshCS uint sizeInBytes ); + /* Debug Naming */ + + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void Refresh_SetGpuBufferName( + IntPtr device, + IntPtr buffer, + [MarshalAs(UnmanagedType.LPUTF8Str)] string text + ); + + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void Refresh_SetTextureName( + IntPtr device, + IntPtr texture, + [MarshalAs(UnmanagedType.LPUTF8Str)] string text + ); + /* Disposal */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]