Add pipeline cache

This commit is contained in:
Guillaume Meunier
2024-01-28 11:33:32 +01:00
parent d0047d6da5
commit 1ce83568eb
7 changed files with 112 additions and 32 deletions
+7
View File
@@ -88,6 +88,7 @@ class application : public singleton<application>
vk::raii::Queue vk_queue = nullptr;
vk::raii::CommandPool vk_cmdpool = nullptr;
vk::Format swapchain_format;
vk::raii::PipelineCache pipeline_cache = nullptr;
// OpenXR stuff
void initialize_actions();
@@ -118,6 +119,7 @@ class application : public singleton<application>
std::vector<std::string> xr_extensions;
std::atomic<bool> exit_requested = false;
std::filesystem::path config_path;
std::filesystem::path cache_path;
std::string server_address;
@@ -305,4 +307,9 @@ public:
{
return instance().vk_device;
}
static vk::raii::PipelineCache& get_pipeline_cache()
{
return instance().pipeline_cache;
}
};