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

@@ -66,9 +66,6 @@ bool VulkanInstance::Initialize(Window* any_target_window) {
auto version = Version::Parse(VK_API_VERSION);
XELOGVK("Initializing Vulkan %s...", version.pretty_string.c_str());
// Hook into renderdoc, if it's available.
EnableRenderDoc();
// Get all of the global layers and extensions provided by the system.
if (!QueryGlobals()) {
XELOGE("Failed to query instance globals");
@@ -88,6 +85,9 @@ bool VulkanInstance::Initialize(Window* any_target_window) {
return false;
}
// Hook into renderdoc, if it's available.
EnableRenderDoc();
XELOGVK("Instance initialized successfully!");
return true;
}