qt5base-lts/tests/manual/rhi/triquadcube
Laszlo Agocs e539e9a7af rhi: Replace the temporary GPU time query API with a saner one
Modeled after Metal's cb.GPUStart/EndTime. Implemented with timestamp
queries for other APIs.

Implemented for Metal, D3D11, Vulkan for now. No more callback, just
a getter on the command buffer which returns the latest known value,
referring to some previous frame. This makes it a lot more usable
than the original solution that is not really used anywhere at
the moment.

Now works for offscreen "frames" as well, this was not implemented
before.

Opt in with a new QRhi::create() flag because we cannot tell in
advance if the getter will be called or not, and this way we can
skip recording the timestamps by default. The cost is probably
minimal, though. Qt Quick will set this automatically when running
with QSG_RHI_PROFILE=1.

Change-Id: I903779984a4e0bbf1d03806d04bf61571ce23d72
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-04-18 15:35:28 +02:00
..
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
quadrenderer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
quadrenderer.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
texturedcuberenderer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
texturedcuberenderer.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
triangleoncuberenderer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
triangleoncuberenderer.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
trianglerenderer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
trianglerenderer.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
triquadcube.cpp rhi: Replace the temporary GPU time query API with a saner one 2023-04-18 15:35:28 +02:00
triquadcube.pro Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00
triquadcube.qrc Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00