diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-12-24 02:55:48 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-12-24 02:55:48 +0100 |
commit | 481b210c0d035d3de36dc7845802135d90d25a8b (patch) | |
tree | 40fb9593457a28b9389140a2e649b9423a414a5b /src/video_core/renderer_vulkan/vk_texture_cache.h | |
parent | Merge pull request #7614 from liushuyu/fix-linux-inhibit (diff) | |
download | yuzu-481b210c0d035d3de36dc7845802135d90d25a8b.tar yuzu-481b210c0d035d3de36dc7845802135d90d25a8b.tar.gz yuzu-481b210c0d035d3de36dc7845802135d90d25a8b.tar.bz2 yuzu-481b210c0d035d3de36dc7845802135d90d25a8b.tar.lz yuzu-481b210c0d035d3de36dc7845802135d90d25a8b.tar.xz yuzu-481b210c0d035d3de36dc7845802135d90d25a8b.tar.zst yuzu-481b210c0d035d3de36dc7845802135d90d25a8b.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 | 5 |
1 files changed, 4 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 c592f2666..2f12be78b 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.h +++ b/src/video_core/renderer_vulkan/vk_texture_cache.h @@ -23,6 +23,7 @@ using VideoCommon::ImageId; using VideoCommon::NUM_RT; using VideoCommon::Region2D; using VideoCommon::RenderTargets; +using VideoCommon::SlotVector; using VideoCore::Surface::PixelFormat; class ASTCDecoderPass; @@ -170,6 +171,8 @@ private: class ImageView : public VideoCommon::ImageViewBase { public: explicit ImageView(TextureCacheRuntime&, const VideoCommon::ImageViewInfo&, ImageId, Image&); + explicit ImageView(TextureCacheRuntime&, const VideoCommon::ImageViewInfo&, ImageId, Image&, + const SlotVector<Image>&); explicit ImageView(TextureCacheRuntime&, const VideoCommon::ImageInfo&, const VideoCommon::ImageViewInfo&, GPUVAddr); explicit ImageView(TextureCacheRuntime&, const VideoCommon::NullImageViewParams&); @@ -226,7 +229,7 @@ private: [[nodiscard]] vk::ImageView MakeView(VkFormat vk_format, VkImageAspectFlags aspect_mask); const Device* device = nullptr; - const Image* src_image{}; + const SlotVector<Image>* slot_images = nullptr; std::array<vk::ImageView, Shader::NUM_TEXTURE_TYPES> image_views; std::unique_ptr<StorageViews> storage_views; |