mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 00:28:56 +00:00
Vulkan: Uber shader support
This commit is contained in:
parent
4bf5625895
commit
81b4ed2a81
16 changed files with 738 additions and 164 deletions
|
@ -253,6 +253,7 @@ bool VideoBackend::Initialize(void* window_handle)
|
|||
g_renderer.reset();
|
||||
StateTracker::DestroyInstance();
|
||||
g_framebuffer_manager.reset();
|
||||
g_shader_cache->Shutdown();
|
||||
g_shader_cache.reset();
|
||||
g_object_cache.reset();
|
||||
g_command_buffer_mgr.reset();
|
||||
|
@ -262,6 +263,11 @@ bool VideoBackend::Initialize(void* window_handle)
|
|||
return false;
|
||||
}
|
||||
|
||||
// Lastly, precompile ubershaders, if requested.
|
||||
// This has to be done after the texture cache and shader cache are initialized.
|
||||
if (g_ActiveConfig.CanPrecompileUberShaders())
|
||||
g_shader_cache->PrecompileUberShaders();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -293,6 +299,7 @@ void VideoBackend::Shutdown()
|
|||
void VideoBackend::Video_Cleanup()
|
||||
{
|
||||
g_command_buffer_mgr->WaitForGPUIdle();
|
||||
g_shader_cache->Shutdown();
|
||||
|
||||
// Save all cached pipelines out to disk for next time.
|
||||
if (g_ActiveConfig.bShaderCache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue