mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-25 02:38:42 +00:00
Vulkan: Support runtime selection of WSI
This commit is contained in:
parent
c41f32bcf8
commit
f9869cb216
8 changed files with 155 additions and 179 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/WindowSystemInfo.h"
|
||||
#include "VideoBackends/Vulkan/Constants.h"
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
|
@ -23,7 +24,7 @@ public:
|
|||
static bool CheckValidationLayerAvailablility();
|
||||
|
||||
// Helper method to create a Vulkan instance.
|
||||
static VkInstance CreateVulkanInstance(bool enable_surface, bool enable_debug_report,
|
||||
static VkInstance CreateVulkanInstance(WindowSystemType wstype, bool enable_debug_report,
|
||||
bool enable_validation_layer);
|
||||
|
||||
// Returns a list of Vulkan-compatible GPUs.
|
||||
|
@ -109,7 +110,7 @@ public:
|
|||
|
||||
private:
|
||||
using ExtensionList = std::vector<const char*>;
|
||||
static bool SelectInstanceExtensions(ExtensionList* extension_list, bool enable_surface,
|
||||
static bool SelectInstanceExtensions(ExtensionList* extension_list, WindowSystemType wstype,
|
||||
bool enable_debug_report);
|
||||
bool SelectDeviceExtensions(ExtensionList* extension_list, bool enable_surface);
|
||||
bool SelectDeviceFeatures();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue