diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2021-11-09 13:18:15 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2021-11-10 13:31:05 +0100 |
commit | a8be40bd64b9258334d6936b1775bc6631fd158d (patch) | |
tree | 0a6e2f2a53db8348c118f0240cf3108e9e216c45 /tests/auto/gui/rhi/qrhi/tst_qrhi.cpp | |
parent | cdf784a1c7bf9548a1aed8cbfe376b817d13640a (diff) |
rhi: Expose the maximum uniform buffer range limit
Pick-to: 6.2
Task-number: QTBUG-97715
Change-Id: I7f0a52c410b9b77f735fb3b7fd33141674bb0cda
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/auto/gui/rhi/qrhi/tst_qrhi.cpp')
-rw-r--r-- | tests/auto/gui/rhi/qrhi/tst_qrhi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp index eba9b9ce30..8ac18af9fb 100644 --- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp +++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp @@ -339,12 +339,14 @@ void tst_QRhi::create() const int maxAtt = rhi->resourceLimit(QRhi::MaxColorAttachments); const int framesInFlight = rhi->resourceLimit(QRhi::FramesInFlight); const int texArrayMax = rhi->resourceLimit(QRhi::TextureArraySizeMax); + const int uniBufRangeMax = rhi->resourceLimit(QRhi::MaxUniformBufferRange); QVERIFY(texMin >= 1); QVERIFY(texMax >= texMin); QVERIFY(maxAtt >= 1); QVERIFY(framesInFlight >= 1); if (rhi->isFeatureSupported(QRhi::TextureArrays)) QVERIFY(texArrayMax > 1); + QVERIFY(uniBufRangeMax >= 224 * 4 * 4); QVERIFY(rhi->nativeHandles()); QVERIFY(rhi->profiler()); |