[Vulkan] Support usage of the primary queue in the swap chain

This commit is contained in:
DrChat
2017-12-19 23:08:27 -06:00
parent 0a75f68e88
commit 45846f25ac
2 changed files with 37 additions and 4 deletions

View File

@@ -11,6 +11,7 @@
#define XENIA_UI_VULKAN_VULKAN_SWAP_CHAIN_H_
#include <memory>
#include <mutex>
#include <string>
#include <vector>
@@ -79,6 +80,7 @@ class VulkanSwapChain {
VulkanDevice* device_ = nullptr;
VkQueue presentation_queue_ = nullptr;
std::mutex* presentation_queue_mutex_ = nullptr;
uint32_t presentation_queue_family_ = -1;
VkSurfaceKHR surface_ = nullptr;
uint32_t surface_width_ = 0;