mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-02 18:28:53 +02:00
Android changes
This commit is contained in:
@@ -77,6 +77,8 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
|
||||
public IWindow Window => _window;
|
||||
|
||||
public SurfaceTransformFlagsKHR CurrentTransform => _window.CurrentTransform;
|
||||
|
||||
private readonly Func<Instance, Vk, SurfaceKHR> _getSurface;
|
||||
private readonly Func<string[]> _getRequiredExtensions;
|
||||
private readonly string _preferredGpuId;
|
||||
@@ -1008,6 +1010,15 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
return !(IsMoltenVk || IsQualcommProprietary);
|
||||
}
|
||||
|
||||
internal unsafe void RecreateSurface()
|
||||
{
|
||||
SurfaceApi.DestroySurface(_instance.Instance, _surface, null);
|
||||
|
||||
_surface = _getSurface(_instance.Instance, Api);
|
||||
|
||||
(_window as Window)?.SetSurface(_surface);
|
||||
}
|
||||
|
||||
public unsafe void Dispose()
|
||||
{
|
||||
if (!_initialized)
|
||||
|
||||
Reference in New Issue
Block a user