initial refresh backend selection API support

pull/2/head
cosmonaut 2022-09-28 16:51:52 -07:00
parent 356f8e9ec2
commit eaed76f4dc
1 changed files with 14 additions and 0 deletions

View File

@ -315,6 +315,14 @@ namespace RefreshCS
IntOpaqueWhite
}
public enum Backend
{
DontCare,
Vulkan,
PS5,
Invalid
}
/* Native Structures */
[StructLayout(LayoutKind.Sequential)]
@ -585,6 +593,12 @@ namespace RefreshCS
/* Init/Quit */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Backend Refresh_SelectBackend(
Backend preferredBackend,
out uint flags
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Refresh_CreateDevice(
in PresentationParameters presentationParameters,