mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-29 03:46:24 +02:00
test
This commit is contained in:
parent
9b4d988d8c
commit
108fb2380a
14 changed files with 190 additions and 12 deletions
|
@ -31,6 +31,8 @@ namespace LibRyujinx
|
|||
private static ManualResetEvent _surfaceEvent;
|
||||
private static long _surfacePtr;
|
||||
|
||||
public static VulkanLoader? VulkanLoader { get; private set; }
|
||||
|
||||
[DllImport("libryujinxjni")]
|
||||
private extern static IntPtr getStringPointer(JEnvRef jEnv, JStringLocalRef s);
|
||||
|
||||
|
@ -213,7 +215,8 @@ namespace LibRyujinx
|
|||
public unsafe static JBoolean JniInitializeGraphicsRendererNative(JEnvRef jEnv,
|
||||
JObjectLocalRef jObj,
|
||||
JArrayLocalRef extensionsArray,
|
||||
JLong surfacePtr)
|
||||
JLong surfacePtr,
|
||||
JLong driverHandle)
|
||||
{
|
||||
if (Renderer != null)
|
||||
{
|
||||
|
@ -252,12 +255,17 @@ namespace LibRyujinx
|
|||
|
||||
_surfacePtr = surfacePtr;
|
||||
|
||||
if((long)driverHandle != 0)
|
||||
{
|
||||
VulkanLoader = new VulkanLoader((IntPtr)(long)driverHandle);
|
||||
}
|
||||
|
||||
CreateSurface createSurfaceFunc = instance =>
|
||||
{
|
||||
_surfaceEvent.WaitOne();
|
||||
_surfaceEvent.Reset();
|
||||
|
||||
var api = Vk.GetApi();
|
||||
var api = VulkanLoader?.GetApi() ?? Vk.GetApi();
|
||||
if (api.TryGetInstanceExtension(new Instance(instance), out KhrAndroidSurface surfaceExtension))
|
||||
{
|
||||
var createInfo = new AndroidSurfaceCreateInfoKHR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue