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