summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-03-23 01:03:20 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:24 +0200
commitf8115a6a9e544c3cc33f32ea821d0df15e01591c (patch)
treed1a3b62f8d2c00721c78a90bc4159d9680968365 /src/video_core/renderer_vulkan
parentvk_pipeline_cache: Add pipeline cache (diff)
downloadyuzu-f8115a6a9e544c3cc33f32ea821d0df15e01591c.tar
yuzu-f8115a6a9e544c3cc33f32ea821d0df15e01591c.tar.gz
yuzu-f8115a6a9e544c3cc33f32ea821d0df15e01591c.tar.bz2
yuzu-f8115a6a9e544c3cc33f32ea821d0df15e01591c.tar.lz
yuzu-f8115a6a9e544c3cc33f32ea821d0df15e01591c.tar.xz
yuzu-f8115a6a9e544c3cc33f32ea821d0df15e01591c.tar.zst
yuzu-f8115a6a9e544c3cc33f32ea821d0df15e01591c.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp5
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 036b531b9..8f63a7591 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -514,6 +514,11 @@ bool RasterizerVulkan::AccelerateDisplay(const Tegra::FramebufferConfig& config,
return true;
}
+void RasterizerVulkan::LoadDiskResources(u64 title_id, std::stop_token stop_loading,
+ const VideoCore::DiskResourceLoadCallback& callback) {
+ pipeline_cache.LoadDiskResources(title_id, stop_loading, callback);
+}
+
void RasterizerVulkan::FlushWork() {
static constexpr u32 DRAWS_TO_DISPATCH = 4096;
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.h b/src/video_core/renderer_vulkan/vk_rasterizer.h
index 88dbd753b..2f1551e65 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.h
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.h
@@ -101,6 +101,8 @@ public:
Tegra::Engines::AccelerateDMAInterface& AccessAccelerateDMA() override;
bool AccelerateDisplay(const Tegra::FramebufferConfig& config, VAddr framebuffer_addr,
u32 pixel_stride) override;
+ void LoadDiskResources(u64 title_id, std::stop_token stop_loading,
+ const VideoCore::DiskResourceLoadCallback& callback) override;
private:
static constexpr size_t MAX_TEXTURES = 192;