Debug Name API

refresh2
cosmonaut 2024-03-11 16:10:57 -07:00
parent 1bf28f4397
commit 995a54fa2d
1 changed files with 16 additions and 0 deletions

View File

@ -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)]