diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-28 13:19:52 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-29 21:24:38 +0200 |
commit | 848ed9644c5ddd4b761f7b5184658b6131027e7a (patch) | |
tree | 51d415a47f27ef618524b5def8da161ef42d7a44 /tests | |
parent | 868866cecd57e671d1b2826b59d3fa1c872b214c (diff) |
rhi: Drop QBitArray usage
Change-Id: I4ae92e6c8c91111a4593c51ee05443b3bc806c35
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/gui/rhi/qrhi/tst_qrhi.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp index 568e77fd61..b6351eef45 100644 --- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp +++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp @@ -247,6 +247,19 @@ void tst_QRhi::create() QVERIFY(resUpd); resUpd->release(); + QRhiResourceUpdateBatch *resUpdArray[64]; + for (int i = 0; i < 64; ++i) { + resUpdArray[i] = rhi->nextResourceUpdateBatch(); + QVERIFY(resUpdArray[i]); + } + resUpd = rhi->nextResourceUpdateBatch(); + QVERIFY(!resUpd); + for (int i = 0; i < 64; ++i) + resUpdArray[i]->release(); + resUpd = rhi->nextResourceUpdateBatch(); + QVERIFY(resUpd); + resUpd->release(); + QVERIFY(!rhi->supportedSampleCounts().isEmpty()); QVERIFY(rhi->supportedSampleCounts().contains(1)); |