qt5base-lts/tests/auto
Laszlo Agocs bc4570ed24 rhi: Auto-rebuild rt by tracking attachment id and generation
Unlike the shader resource binding lists that automatically recognize
in setShaderResources() when a referenced QRhiResource has been rebuilt
in the meantime (create() was called i.e. there may be completely
different native objects underneath), QRhiTextureRenderTarget has no
such thing. This leads to an asymmetric API and requires also rebuilding
the rt whenever an attachment is rebuilt:

rt = rhi->newTextureRenderTarget({ { texture } })
rt->create()
cb->beginPass(rt, ...)
texture->setPixelSize(...)
texture->create()
rt->create() // this should not be needed
cb->beginPass(rt, ...)

Avoid having to do that second rt->create().

Change-Id: If14eaa7aac3530950498bbdf834324d0741a7c4d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2021-12-10 15:08:51 +01:00
..
bic/data Add binary compatibility files for 6.1 2021-09-03 13:41:25 +00:00
cmake Fix dependency chain that collects the metatype json files 2021-12-02 16:34:23 +01:00
concurrent Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
corelib QList: fix typo in QList(It, It) 2021-12-10 13:48:37 +00:00
dbus tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
gui rhi: Auto-rebuild rt by tracking attachment id and generation 2021-12-10 15:08:51 +01:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network QNAM: Reintroduce h2c with an attribute 2021-12-04 08:20:52 +00:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other QPA: Set focus reason when window activation changes focus 2021-12-03 08:15:29 +01:00
printsupport QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
testlib TAP test logger: avoid dangling space on TODO and SKIP lines 2021-12-09 20:54:26 +01:00
tools Long live Q_GADGET_EXPORT! 2021-11-27 01:25:10 +01:00
widgets Add unit test for moving of opaque widgets 2021-12-08 23:06:42 +00:00
xml QDomDocument::setContent: Open device if necessary 2021-11-09 18:33:39 +01:00
CMakeLists.txt Don't build tests/auto/tools when cross-compiling 2021-10-07 08:03:40 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00