[Vulkan] Add support for vkPipelineCache

This commit is contained in:
Herman S.
2025-12-01 23:55:15 +09:00
parent 6057b0a7c7
commit 2ad412a141
3 changed files with 23 additions and 1 deletions

View File

@@ -318,6 +318,9 @@ class VulkanPipelineCache {
// shader interlock when no Xenos pixel shader provided.
VkShaderModule depth_only_fragment_shader_ = VK_NULL_HANDLE;
// Vulkan pipeline cache for faster pipeline creation.
VkPipelineCache vk_pipeline_cache_ = VK_NULL_HANDLE;
std::unordered_map<PipelineDescription, Pipeline, PipelineDescription::Hasher>
pipelines_;