Vulkan: Synchronize copies/draws to the swap chain.

Grab RenderDoc after creating the Vulkan instance
This commit is contained in:
Dr. Chat
2016-07-29 10:34:54 -05:00
parent f81a99e83a
commit 72d83591e5
3 changed files with 35 additions and 19 deletions

View File

@@ -83,6 +83,7 @@ class VulkanSwapChain {
VkCommandBuffer render_cmd_buffer_ = nullptr;
VkRenderPass render_pass_ = nullptr;
VkSemaphore image_available_semaphore_ = nullptr;
VkSemaphore image_usage_semaphore_ = nullptr;
uint32_t current_buffer_index_ = 0;
std::vector<Buffer> buffers_;
};