Android changes

This commit is contained in:
KeatonTheBot
2025-05-16 23:42:48 -05:00
parent df21f6019e
commit e8e4c5aa61
464 changed files with 23351 additions and 1429 deletions
@@ -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)