diff options
author | bunnei <bunneidev@gmail.com> | 2020-02-24 16:14:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 16:14:50 +0100 |
commit | e22ad52cdb18842a12037e8b85d7be854b95206c (patch) | |
tree | f60ec07ce5a4e6f56a1c9c5e18884de52de81334 /src/video_core/renderer_vulkan/vk_rasterizer.h | |
parent | Merge pull request #3424 from ReinUsesLisp/spirv-layer (diff) | |
parent | texture_cache: Implement layered framebuffer attachments (diff) | |
download | yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.gz yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.bz2 yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.lz yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.xz yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.zst yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.h b/src/video_core/renderer_vulkan/vk_rasterizer.h index 138903d60..4dc8af6e8 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.h +++ b/src/video_core/renderer_vulkan/vk_rasterizer.h @@ -56,6 +56,7 @@ struct FramebufferCacheKey { vk::RenderPass renderpass{}; u32 width = 0; u32 height = 0; + u32 layers = 0; ImageViewsPack views; std::size_t Hash() const noexcept { @@ -66,12 +67,17 @@ struct FramebufferCacheKey { } boost::hash_combine(hash, width); boost::hash_combine(hash, height); + boost::hash_combine(hash, layers); return hash; } bool operator==(const FramebufferCacheKey& rhs) const noexcept { - return std::tie(renderpass, views, width, height) == - std::tie(rhs.renderpass, rhs.views, rhs.width, rhs.height); + return std::tie(renderpass, views, width, height, layers) == + std::tie(rhs.renderpass, rhs.views, rhs.width, rhs.height, rhs.layers); + } + + bool operator!=(const FramebufferCacheKey& rhs) const noexcept { + return !operator==(rhs); } }; |