summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/main.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2018-02-07 23:35:54 -0800
committerGitHub <noreply@github.com>2018-02-07 23:35:54 -0800
commit096131c9085ff6cb358d03251f666536910d7806 (patch)
tree0e786cfd19885e26aba93636b99a0596d3e51d74 /Source/Core/VideoBackends/Vulkan/main.cpp
parent4636230f5a8f38b6a70d366615ab43cda11d736a (diff)
parent505d30be3d922f2fba7abe6fd9880f3c8e66767a (diff)
Merge pull request #6334 from stenzek/startup
Video Backend Initialization/Core Boot Improvements
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/main.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/main.cpp27
1 files changed, 5 insertions, 22 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/main.cpp b/Source/Core/VideoBackends/Vulkan/main.cpp
index 63b7921442..d8a725845a 100644
--- a/Source/Core/VideoBackends/Vulkan/main.cpp
+++ b/Source/Core/VideoBackends/Vulkan/main.cpp
@@ -245,22 +245,16 @@ bool VideoBackend::Initialize(void* window_handle)
if (g_ActiveConfig.CanPrecompileUberShaders())
g_shader_cache->PrecompileUberShaders();
+ // Display the name so the user knows which device was actually created.
+ INFO_LOG(VIDEO, "Vulkan Device: %s", g_vulkan_context->GetDeviceProperties().deviceName);
return true;
}
-// This is called after Initialize() from the Core
-// Run from the graphics thread
-void VideoBackend::Video_Prepare()
-{
- // Display the name so the user knows which device was actually created
- OSD::AddMessage(StringFromFormat("Using physical adapter %s",
- g_vulkan_context->GetDeviceProperties().deviceName)
- .c_str(),
- 5000);
-}
-
void VideoBackend::Shutdown()
{
+ if (g_renderer)
+ g_renderer->Shutdown();
+
if (g_command_buffer_mgr)
g_command_buffer_mgr->WaitForGPUIdle();
@@ -279,15 +273,4 @@ void VideoBackend::Shutdown()
ShutdownShared();
UnloadVulkanLibrary();
}
-
-void VideoBackend::Video_Cleanup()
-{
- g_command_buffer_mgr->WaitForGPUIdle();
-
- // Save all cached pipelines out to disk for next time.
- if (g_ActiveConfig.bShaderCache)
- g_shader_cache->SavePipelineCache();
-
- CleanupShared();
-}
}