diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-11-21 07:53:16 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-12-05 21:42:44 +0100 |
commit | b8f3e5157ba08dc978ee8abb4f8ecc0ffa5c3c8c (patch) | |
tree | 64539cf02b793108a482546f5ac726148119f7fa /src/video_core/renderer_vulkan/vk_texture_cache.h | |
parent | vk_texture_cache: Add a function to ImageView to check if src image is rescaled (diff) | |
download | yuzu-b8f3e5157ba08dc978ee8abb4f8ecc0ffa5c3c8c.tar yuzu-b8f3e5157ba08dc978ee8abb4f8ecc0ffa5c3c8c.tar.gz yuzu-b8f3e5157ba08dc978ee8abb4f8ecc0ffa5c3c8c.tar.bz2 yuzu-b8f3e5157ba08dc978ee8abb4f8ecc0ffa5c3c8c.tar.lz yuzu-b8f3e5157ba08dc978ee8abb4f8ecc0ffa5c3c8c.tar.xz yuzu-b8f3e5157ba08dc978ee8abb4f8ecc0ffa5c3c8c.tar.zst yuzu-b8f3e5157ba08dc978ee8abb4f8ecc0ffa5c3c8c.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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.h b/src/video_core/renderer_vulkan/vk_texture_cache.h index e80978842..c592f2666 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.h +++ b/src/video_core/renderer_vulkan/vk_texture_cache.h @@ -65,7 +65,7 @@ public: void ReinterpretImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies); - void ConvertImage(Framebuffer* dst, ImageView& dst_view, ImageView& src_view, bool rescaled); + void ConvertImage(Framebuffer* dst, ImageView& dst_view, ImageView& src_view); bool CanAccelerateImageUpload(Image&) const noexcept { return false; @@ -191,6 +191,8 @@ public: [[nodiscard]] VkImageView StorageView(Shader::TextureType texture_type, Shader::ImageFormat image_format); + [[nodiscard]] bool IsRescaled() const noexcept; + [[nodiscard]] VkImageView Handle(Shader::TextureType texture_type) const noexcept { return *image_views[static_cast<size_t>(texture_type)]; } @@ -215,8 +217,6 @@ public: return buffer_size; } - [[nodiscard]] bool IsRescaled() const noexcept; - private: struct StorageViews { std::array<vk::ImageView, Shader::NUM_TEXTURE_TYPES> signeds; |