From 336e90d412879c69323ec318b944a0f38736e436 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 12 Sep 2022 13:50:44 +0100 Subject: [PATCH] Display special D3D quality levels in texture viewer --- qrenderdoc/Windows/TextureViewer.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index 32edb5554..ea512add4 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -1202,8 +1202,18 @@ void TextureViewer::UI_UpdateTextureDetails() if(current.arraysize > 1) status += QFormatStr("[%1]").arg(QString::number(current.arraysize)); - if(current.msQual > 0 || current.msSamp > 1) - status += QFormatStr(" MS{%1x %2Q}").arg(current.msSamp).arg(current.msQual); + if(current.msSamp > 1) + { + // quality is only used by D3D, specify these here for simplicity + if(current.msQual == 0xffffffff) + status += QFormatStr(" MS %1x Std Pattern").arg(current.msSamp); + else if(current.msQual == 0xfffffffe) + status += QFormatStr(" MS %1x Cent Pattern").arg(current.msSamp); + else if(current.msQual > 0) + status += QFormatStr(" MS %1x %2 Quality").arg(current.msSamp).arg(current.msQual); + else + status += QFormatStr(" MS %1x").arg(current.msSamp); + } status += QFormatStr(" %1 mips").arg(current.mips);