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