Vulkan: Validate the pipeline cache before using it

This ensures that if a user changes adapters or vendors we're not passing
invalid data to the driver.
This commit is contained in:
Stenzek
2016-11-13 18:50:10 +10:00
parent 9604b336c8
commit 8d48319414
2 changed files with 78 additions and 0 deletions

View File

@ -143,6 +143,7 @@ public:
private:
bool CreatePipelineCache(bool load_from_disk);
bool ValidatePipelineCache(const u8* data, size_t data_length);
void DestroyPipelineCache();
void LoadShaderCaches();
void DestroyShaderCaches();