[Vulkan] Only require surface extensions on windows
This commit is contained in:
parent
b865e324c2
commit
d791338c4d
|
@ -50,10 +50,12 @@ bool VulkanProvider::Initialize() {
|
||||||
instance_ = std::make_unique<VulkanInstance>();
|
instance_ = std::make_unique<VulkanInstance>();
|
||||||
|
|
||||||
// Always enable the swapchain.
|
// Always enable the swapchain.
|
||||||
|
#if XE_PLATFORM_WIN32
|
||||||
instance_->DeclareRequiredExtension("VK_KHR_surface", Version::Make(0, 0, 0),
|
instance_->DeclareRequiredExtension("VK_KHR_surface", Version::Make(0, 0, 0),
|
||||||
false);
|
false);
|
||||||
instance_->DeclareRequiredExtension("VK_KHR_win32_surface",
|
instance_->DeclareRequiredExtension("VK_KHR_win32_surface",
|
||||||
Version::Make(0, 0, 0), false);
|
Version::Make(0, 0, 0), false);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Attempt initialization and device query.
|
// Attempt initialization and device query.
|
||||||
if (!instance_->Initialize()) {
|
if (!instance_->Initialize()) {
|
||||||
|
|
Loading…
Reference in New Issue