[Vulkan] Implement ClearCaches and don't do it for pipelines

This commit is contained in:
Triang3l
2022-05-22 15:05:15 +03:00
parent 35cfb07967
commit 91c4e02e96
4 changed files with 23 additions and 34 deletions

View File

@@ -58,7 +58,6 @@ class VulkanPipelineCache {
bool Initialize();
void Shutdown();
void ClearCache();
VulkanShader* LoadShader(xenos::ShaderType shader_type,
const uint32_t* host_address, uint32_t dword_count);
@@ -198,7 +197,8 @@ class VulkanPipelineCache {
struct Pipeline {
VkPipeline pipeline = VK_NULL_HANDLE;
// Owned by VulkanCommandProcessor, valid until ClearCache.
// The layouts are owned by the VulkanCommandProcessor, and must not be
// destroyed by it while the pipeline cache is active.
const PipelineLayoutProvider* pipeline_layout;
Pipeline(const PipelineLayoutProvider* pipeline_layout_provider)
: pipeline_layout(pipeline_layout_provider) {}