Add get_surface_extension to WindowsSystemDriver
This commit is contained in:
@@ -6,6 +6,11 @@
|
|||||||
|
|
||||||
#include "drivers/windows/system_driver.h"
|
#include "drivers/windows/system_driver.h"
|
||||||
|
|
||||||
|
#ifdef NOVA_VULKAN
|
||||||
|
#include <vulkan/vulkan.h>
|
||||||
|
#include <vulkan/vulkan_win32.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <nova/core/debug.h>
|
#include <nova/core/debug.h>
|
||||||
|
|
||||||
using namespace Nova;
|
using namespace Nova;
|
||||||
@@ -17,3 +22,11 @@ WindowsSystemDriver::WindowsSystemDriver() {
|
|||||||
WindowsSystemDriver::~WindowsSystemDriver() {
|
WindowsSystemDriver::~WindowsSystemDriver() {
|
||||||
NOVA_AUTO_TRACE();
|
NOVA_AUTO_TRACE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* WindowsSystemDriver::get_surface_extension() const {
|
||||||
|
#ifdef NOVA_VULKAN
|
||||||
|
return VK_KHR_WIN32_SURFACE_EXTENSION_NAME;
|
||||||
|
#else
|
||||||
|
return nullptr;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|||||||
@@ -7,11 +7,14 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <nova/platform/system_driver.h>
|
#include <nova/platform/system_driver.h>
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
namespace Nova {
|
namespace Nova {
|
||||||
class WindowsSystemDriver final : public SystemDriver {
|
class WindowsSystemDriver final : public SystemDriver {
|
||||||
public:
|
public:
|
||||||
WindowsSystemDriver();
|
WindowsSystemDriver();
|
||||||
~WindowsSystemDriver() override;
|
~WindowsSystemDriver() override;
|
||||||
|
|
||||||
|
[[nodiscard]] const char* get_surface_extension() const override;
|
||||||
};
|
};
|
||||||
} // namespace Nova
|
} // namespace Nova
|
||||||
|
|||||||
Reference in New Issue
Block a user