diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-10-14 05:53:59 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:31 +0100 |
commit | ebf36f23dd781c06fd100de10cc2ec25d4bec215 (patch) | |
tree | 7de3eae1418405df263079b7f6b237176825cc15 /src/video_core/renderer_vulkan/vk_texture_cache.h | |
parent | texture_cache: Fix infinitely recursive ImageCanRescale check (diff) | |
download | yuzu-ebf36f23dd781c06fd100de10cc2ec25d4bec215.tar yuzu-ebf36f23dd781c06fd100de10cc2ec25d4bec215.tar.gz yuzu-ebf36f23dd781c06fd100de10cc2ec25d4bec215.tar.bz2 yuzu-ebf36f23dd781c06fd100de10cc2ec25d4bec215.tar.lz yuzu-ebf36f23dd781c06fd100de10cc2ec25d4bec215.tar.xz yuzu-ebf36f23dd781c06fd100de10cc2ec25d4bec215.tar.zst yuzu-ebf36f23dd781c06fd100de10cc2ec25d4bec215.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_texture_cache.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.h b/src/video_core/renderer_vulkan/vk_texture_cache.h index 5381343e9..dc9175ee1 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.h +++ b/src/video_core/renderer_vulkan/vk_texture_cache.h @@ -145,6 +145,9 @@ private: vk::Image scaled_image{}; MemoryCommit scaled_commit{}; VkImage current_image{}; + + std::unique_ptr<Framebuffer> scale_framebuffer; + std::unique_ptr<ImageView> scale_view; }; class ImageView : public VideoCommon::ImageViewBase { @@ -221,9 +224,15 @@ private: class Framebuffer { public: - explicit Framebuffer(TextureCacheRuntime&, std::span<ImageView*, NUM_RT> color_buffers, + explicit Framebuffer(TextureCacheRuntime& runtime, std::span<ImageView*, NUM_RT> color_buffers, ImageView* depth_buffer, const VideoCommon::RenderTargets& key); + explicit Framebuffer(TextureCacheRuntime& runtime, ImageView* color_buffer, + ImageView* depth_buffer, VkExtent2D extent); + + void CreateFramebuffer(TextureCacheRuntime& runtime, + std::span<ImageView*, NUM_RT> color_buffers, ImageView* depth_buffer); + [[nodiscard]] VkFramebuffer Handle() const noexcept { return *framebuffer; } |