aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/formatter.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-02-12 00:18:52 -0800
committerGitHub <noreply@github.com>2023-02-12 00:18:52 -0800
commitf70fcdb873f768403af37622fbc195433b3605ef (patch)
treeb1fbe289c78b39bde41e7a895d8e172d4f3a1927 /src/video_core/texture_cache/formatter.cpp
parentfbba6e10bc421aa3a3dc91282814e4d18ac8eb92 (diff)
parent93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5 (diff)
Merge pull request #9746 from ameerj/ogl-msaa-texcache
texture_cache: OpenGL: Implement MSAA uploads and copies
Diffstat (limited to 'src/video_core/texture_cache/formatter.cpp')
-rw-r--r--src/video_core/texture_cache/formatter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/formatter.cpp b/src/video_core/texture_cache/formatter.cpp
index 418890126..30f72361d 100644
--- a/src/video_core/texture_cache/formatter.cpp
+++ b/src/video_core/texture_cache/formatter.cpp
@@ -22,6 +22,9 @@ std::string Name(const ImageBase& image) {
const u32 num_layers = image.info.resources.layers;
const u32 num_levels = image.info.resources.levels;
std::string resource;
+ if (image.info.num_samples > 1) {
+ resource += fmt::format(":{}xMSAA", image.info.num_samples);
+ }
if (num_layers > 1) {
resource += fmt::format(":L{}", num_layers);
}