initial refresh backend selection API support
parent
356f8e9ec2
commit
eaed76f4dc
|
@ -315,6 +315,14 @@ namespace RefreshCS
|
||||||
IntOpaqueWhite
|
IntOpaqueWhite
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum Backend
|
||||||
|
{
|
||||||
|
DontCare,
|
||||||
|
Vulkan,
|
||||||
|
PS5,
|
||||||
|
Invalid
|
||||||
|
}
|
||||||
|
|
||||||
/* Native Structures */
|
/* Native Structures */
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
@ -585,6 +593,12 @@ namespace RefreshCS
|
||||||
|
|
||||||
/* Init/Quit */
|
/* Init/Quit */
|
||||||
|
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern Backend Refresh_SelectBackend(
|
||||||
|
Backend preferredBackend,
|
||||||
|
out uint flags
|
||||||
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateDevice(
|
public static extern IntPtr Refresh_CreateDevice(
|
||||||
in PresentationParameters presentationParameters,
|
in PresentationParameters presentationParameters,
|
||||||
|
|
Loading…
Reference in New Issue