summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-02-12 09:18:52 +0100
committerGitHub <noreply@github.com>2023-02-12 09:18:52 +0100
commitf70fcdb873f768403af37622fbc195433b3605ef (patch)
treeb1fbe289c78b39bde41e7a895d8e172d4f3a1927 /src/video_core/renderer_vulkan
parentMerge pull request #9781 from ColinKinloch/info_id_typo (diff)
parenttexture_cache: OpenGL: Implement MSAA uploads and copies (diff)
downloadyuzu-f70fcdb873f768403af37622fbc195433b3605ef.tar
yuzu-f70fcdb873f768403af37622fbc195433b3605ef.tar.gz
yuzu-f70fcdb873f768403af37622fbc195433b3605ef.tar.bz2
yuzu-f70fcdb873f768403af37622fbc195433b3605ef.tar.lz
yuzu-f70fcdb873f768403af37622fbc195433b3605ef.tar.xz
yuzu-f70fcdb873f768403af37622fbc195433b3605ef.tar.zst
yuzu-f70fcdb873f768403af37622fbc195433b3605ef.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.cpp5
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
index d39372ec4..9b85dfb5e 100644
--- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
@@ -1230,6 +1230,11 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
});
}
+void TextureCacheRuntime::CopyImageMSAA(Image& dst, Image& src,
+ std::span<const VideoCommon::ImageCopy> copies) {
+ UNIMPLEMENTED_MSG("Copying images with different samples is not implemented in Vulkan.");
+}
+
u64 TextureCacheRuntime::GetDeviceLocalMemory() const {
return device.GetDeviceLocalMemory();
}
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.h b/src/video_core/renderer_vulkan/vk_texture_cache.h
index 1f27a3589..b9ee83de7 100644
--- a/src/video_core/renderer_vulkan/vk_texture_cache.h
+++ b/src/video_core/renderer_vulkan/vk_texture_cache.h
@@ -70,6 +70,8 @@ public:
void CopyImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
+ void CopyImageMSAA(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
+
bool ShouldReinterpret(Image& dst, Image& src);
void ReinterpretImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
@@ -80,6 +82,11 @@ public:
return false;
}
+ bool CanUploadMSAA() const noexcept {
+ // TODO: Implement buffer to MSAA uploads
+ return false;
+ }
+
void AccelerateImageUpload(Image&, const StagingBufferRef&,
std::span<const VideoCommon::SwizzleParameters>);