Vulkan: Don't save pipeline cache if shader cache is disabled

We still create a pipeline cache object, since that speeds up driver's
creation of pipelines at runtime. However, we should not save it.
This commit is contained in:
Stenzek
2017-06-24 19:43:58 +10:00
parent d9a3b29a07
commit a8343cc19a
3 changed files with 58 additions and 35 deletions

View File

@ -163,7 +163,8 @@ public:
std::string GetDiskCacheFileName(const char* type);
private:
bool CreatePipelineCache(bool load_from_disk);
bool CreatePipelineCache();
bool LoadPipelineCache();
bool ValidatePipelineCache(const u8* data, size_t data_length);
void DestroyPipelineCache();
void LoadShaderCaches();