summaryrefslogtreecommitdiff
path: root/src/qtdiag
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2021-12-01 13:17:31 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2021-12-02 10:57:15 +0100
commit5066d5e7ecc5fc8ca169cbeaeb441a31e2cabde7 (patch)
tree5b49355cfffdeef18c66e039dec488e6ce6a1265 /src/qtdiag
parent6bceba8a6ce6eb5569fcdc1342dd70c0580d0c96 (diff)
downloadqttools-5066d5e7ecc5fc8ca169cbeaeb441a31e2cabde7.tar.gz
qtdiag: Print recent QRhi features and limits
Change-Id: Ib9eb22abd407687c35ccd127579b566fdc831485 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/qtdiag')
-rw-r--r--src/qtdiag/qtdiag.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qtdiag/qtdiag.cpp b/src/qtdiag/qtdiag.cpp
index 5f945064f..9382f526c 100644
--- a/src/qtdiag/qtdiag.cpp
+++ b/src/qtdiag/qtdiag.cpp
@@ -320,6 +320,12 @@ void dumpRhiBackendInfo(QTextStream &str, const char *name, QRhi::Implementation
{ "IntAttributes", QRhi::IntAttributes },
{ "ScreenSpaceDerivatives", QRhi::ScreenSpaceDerivatives },
{ "ReadBackAnyTextureFormat", QRhi::ReadBackAnyTextureFormat },
+ { "PipelineCacheDataLoadSave", QRhi::PipelineCacheDataLoadSave },
+ { "ImageDataStride", QRhi::ImageDataStride },
+ { "RenderBufferImport", QRhi::RenderBufferImport },
+ { "ThreeDimensionalTextures", QRhi::ThreeDimensionalTextures },
+ { "RenderTo3DTextureSlice", QRhi::RenderTo3DTextureSlice },
+ { "TextureArrays", QRhi::TextureArrays },
{ nullptr, QRhi::Feature(0) }
};
@@ -381,6 +387,8 @@ void dumpRhiBackendInfo(QTextStream &str, const char *name, QRhi::Implementation
str << " MaxThreadGroupX: " << rhi->resourceLimit(QRhi::MaxThreadGroupX) << "\n";
str << " MaxThreadGroupY: " << rhi->resourceLimit(QRhi::MaxThreadGroupY) << "\n";
str << " MaxThreadGroupZ: " << rhi->resourceLimit(QRhi::MaxThreadGroupZ) << "\n";
+ str << " TextureArraySizeMax: " << rhi->resourceLimit(QRhi::TextureArraySizeMax) << "\n";
+ str << " MaxUniformBufferRange: " << rhi->resourceLimit(QRhi::MaxUniformBufferRange) << "\n";
str << " Uniform Buffer Alignment: " << rhi->ubufAlignment() << "\n";
QByteArrayList supportedSampleCounts;
for (int s : rhi->supportedSampleCounts())