change backend selection behavior

refresh2
cosmonaut 2024-03-07 10:34:14 -08:00
parent 859675dbab
commit 55acf6ee18
1 changed files with 3 additions and 3 deletions

View File

@ -322,7 +322,6 @@ namespace RefreshCS
public enum Backend
{
DontCare,
Vulkan,
D3D11,
PS5,
@ -652,8 +651,9 @@ namespace RefreshCS
/* Init/Quit */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Backend Refresh_SelectBackend(
Backend preferredBackend,
public static unsafe extern Backend Refresh_SelectBackend(
Backend* preferredBackends,
uint preferredBackendCount,
out uint flags
);