mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-29 20:06:25 +02:00
some optimizations. apply current transform to native window instead of defaulting to Identity
This commit is contained in:
parent
8d2c355ced
commit
613759199b
12 changed files with 473 additions and 35 deletions
|
@ -30,6 +30,7 @@ namespace LibRyujinx
|
|||
{
|
||||
private static ManualResetEvent _surfaceEvent;
|
||||
private static long _surfacePtr;
|
||||
private static long _window = 0;
|
||||
|
||||
public static VulkanLoader? VulkanLoader { get; private set; }
|
||||
|
||||
|
@ -48,6 +49,9 @@ namespace LibRyujinx
|
|||
[DllImport("libryujinxjni")]
|
||||
internal extern static void onFrameEnd(double time);
|
||||
|
||||
[DllImport("libryujinxjni")]
|
||||
internal extern static void setCurrentTransform(long native_window, int transform);
|
||||
|
||||
public delegate IntPtr JniCreateSurface(IntPtr native_surface, IntPtr instance);
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "JNI_OnLoad")]
|
||||
|
@ -236,9 +240,10 @@ namespace LibRyujinx
|
|||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "Java_org_ryujinx_android_RyujinxNative_graphicsSetSurface")]
|
||||
public static void JniSetSurface(JEnvRef jEnv, JObjectLocalRef jObj, JLong surfacePtr)
|
||||
public static void JniSetSurface(JEnvRef jEnv, JObjectLocalRef jObj, JLong surfacePtr, JLong window)
|
||||
{
|
||||
_surfacePtr = surfacePtr;
|
||||
_window = window;
|
||||
|
||||
_surfaceEvent.Set();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue