diff options
author | bunnei <bunneidev@gmail.com> | 2023-02-12 09:18:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 09:18:52 +0100 |
commit | f70fcdb873f768403af37622fbc195433b3605ef (patch) | |
tree | b1fbe289c78b39bde41e7a895d8e172d4f3a1927 /src/video_core/renderer_opengl/gl_texture_cache.cpp | |
parent | Merge pull request #9781 from ColinKinloch/info_id_typo (diff) | |
parent | texture_cache: OpenGL: Implement MSAA uploads and copies (diff) | |
download | yuzu-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 '')
-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); |