summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-02 07:32:58 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-07 21:32:19 +0200
commitbf1d66b7c074c02aa8148f2edbdc959082c229e1 (patch)
tree744ff7c8db629f73181da21c44ec76ee70cd4e52 /src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h
parentrenderer_vulkan: Query device names from the backend (diff)
downloadyuzu-bf1d66b7c074c02aa8148f2edbdc959082c229e1.tar
yuzu-bf1d66b7c074c02aa8148f2edbdc959082c229e1.tar.gz
yuzu-bf1d66b7c074c02aa8148f2edbdc959082c229e1.tar.bz2
yuzu-bf1d66b7c074c02aa8148f2edbdc959082c229e1.tar.lz
yuzu-bf1d66b7c074c02aa8148f2edbdc959082c229e1.tar.xz
yuzu-bf1d66b7c074c02aa8148f2edbdc959082c229e1.tar.zst
yuzu-bf1d66b7c074c02aa8148f2edbdc959082c229e1.zip
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h
index 3dd1f3f61..b8021ebea 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.h
@@ -4,27 +4,21 @@
#pragma once
-#include <vulkan/vulkan.h>
+#include <memory>
+
#include "core/frontend/emu_window.h"
#include "yuzu_cmd/emu_window/emu_window_sdl2.h"
+namespace Core {
+class System;
+}
+
class EmuWindow_SDL2_VK final : public EmuWindow_SDL2 {
public:
explicit EmuWindow_SDL2_VK(Core::System& system, bool fullscreen);
~EmuWindow_SDL2_VK();
void Present() override;
- void RetrieveVulkanHandlers(void* get_instance_proc_addr, void* instance,
- void* surface) const override;
std::unique_ptr<Core::Frontend::GraphicsContext> CreateSharedContext() const override;
-
-private:
- bool UseStandardLayers(PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr) const;
-
- VkInstance vk_instance{};
- VkSurfaceKHR vk_surface{};
-
- PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr{};
- PFN_vkDestroyInstance vkDestroyInstance{};
};