diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-02-08 03:33:57 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-02-11 21:43:07 +0100 |
commit | 93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5 (patch) | |
tree | 27f50dead32e6741d0cff761b3c0be4d8d7acd0c /src/video_core/renderer_opengl/gl_texture_cache.cpp | |
parent | Merge pull request #9508 from ameerj/hle-ipc-buffer-span (diff) | |
download | yuzu-93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5.tar yuzu-93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5.tar.gz yuzu-93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5.tar.bz2 yuzu-93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5.tar.lz yuzu-93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5.tar.xz yuzu-93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5.tar.zst yuzu-93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 9f7ce7414..eb6e43a08 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -557,6 +557,14 @@ void TextureCacheRuntime::CopyImage(Image& dst_image, Image& src_image, } } +void TextureCacheRuntime::CopyImageMSAA(Image& dst_image, Image& src_image, + std::span<const VideoCommon::ImageCopy> copies) { + LOG_DEBUG(Render_OpenGL, "Copying from {} samples to {} samples", src_image.info.num_samples, + dst_image.info.num_samples); + // TODO: Leverage the format conversion pass if possible/accurate. + util_shaders.CopyMSAA(dst_image, src_image, copies); +} + void TextureCacheRuntime::ReinterpretImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies) { LOG_DEBUG(Render_OpenGL, "Converting {} to {}", src.info.format, dst.info.format); |