aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/UI/Renderer/EmbeddedWindowVulkan.cs
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Ava/UI/Renderer/EmbeddedWindowVulkan.cs
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Ava/UI/Renderer/EmbeddedWindowVulkan.cs')
-rw-r--r--Ryujinx.Ava/UI/Renderer/EmbeddedWindowVulkan.cs42
1 files changed, 0 insertions, 42 deletions
diff --git a/Ryujinx.Ava/UI/Renderer/EmbeddedWindowVulkan.cs b/Ryujinx.Ava/UI/Renderer/EmbeddedWindowVulkan.cs
deleted file mode 100644
index 0b3eb9e3..00000000
--- a/Ryujinx.Ava/UI/Renderer/EmbeddedWindowVulkan.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using Silk.NET.Vulkan;
-using SPB.Graphics.Vulkan;
-using SPB.Platform.Metal;
-using SPB.Platform.Win32;
-using SPB.Platform.X11;
-using SPB.Windowing;
-using System;
-
-namespace Ryujinx.Ava.UI.Renderer
-{
- public class EmbeddedWindowVulkan : EmbeddedWindow
- {
- public SurfaceKHR CreateSurface(Instance instance)
- {
- NativeWindowBase nativeWindowBase;
-
- if (OperatingSystem.IsWindows())
- {
- nativeWindowBase = new SimpleWin32Window(new NativeHandle(WindowHandle));
- }
- else if (OperatingSystem.IsLinux())
- {
- nativeWindowBase = new SimpleX11Window(new NativeHandle(X11Display), new NativeHandle(WindowHandle));
- }
- else if (OperatingSystem.IsMacOS())
- {
- nativeWindowBase = new SimpleMetalWindow(new NativeHandle(NsView), new NativeHandle(MetalLayer));
- }
- else
- {
- throw new PlatformNotSupportedException();
- }
-
- return new SurfaceKHR((ulong?)VulkanHelper.CreateWindowSurface(instance.Handle, nativeWindowBase));
- }
-
- public SurfaceKHR CreateSurface(Instance instance, Vk api)
- {
- return CreateSurface(instance);
- }
- }
-} \ No newline at end of file