Vulkan: De-duplicate pipelines when storing cache

The new variety of renderpasses with different transitions causes
duplication. Hopefully drivers are smart enough to re-use work
between similar pipelines as much as possible...
This commit is contained in:
Henrik Rydgård
2018-03-19 10:55:06 +01:00
parent 1dabccb453
commit 8f87a9f5c5
5 changed files with 34 additions and 10 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ VulkanFragmentShader *ShaderManagerVulkan::GetFragmentShaderFromModule(VkShaderM
// instantaneous.
#define CACHE_HEADER_MAGIC 0xff51f420
#define CACHE_VERSION 5
#define CACHE_VERSION 6
struct VulkanCacheHeader {
uint32_t magic;
uint32_t version;