From 9d3eb24d23958c8bb9fabdddaa078da9e7dcea01 Mon Sep 17 00:00:00 2001 From: redstrate <54911369+redstrate@users.noreply.github.com> Date: Sun, 18 Apr 2021 19:54:06 -0400 Subject: [PATCH] Add missing platform methods on Windows backend --- engine/gfx/vulkan/src/gfx_vulkan.cpp | 3 ++- platforms/windows/windows.cpp | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/engine/gfx/vulkan/src/gfx_vulkan.cpp b/engine/gfx/vulkan/src/gfx_vulkan.cpp index 86a6ed9..3338640 100755 --- a/engine/gfx/vulkan/src/gfx_vulkan.cpp +++ b/engine/gfx/vulkan/src/gfx_vulkan.cpp @@ -18,9 +18,10 @@ #include "utility.hpp" #include "gfx_vulkan_commandbuffer.hpp" +#include + #ifdef PLATFORM_LINUX #include -#include #endif diff --git a/platforms/windows/windows.cpp b/platforms/windows/windows.cpp index 36b4bcd..3bbc63f 100755 --- a/platforms/windows/windows.cpp +++ b/platforms/windows/windows.cpp @@ -32,6 +32,14 @@ const char* platform::get_name() { return "Windows"; } +bool platform::supports_feature(const PlatformFeature feature) { + return false; +} + +std::vector platform::get_native_surface_extension() { + return {"VK_KHR_surface", "VK_KHR_win32_surface"}; +} + bool platform::get_key_down(const InputButton key) { if (inputToKeyCode.count(key)) { return (GetKeyState(inputToKeyCode[key]) & 0x8000) != 0;