QRhiStats Struct

Statistics provided from the underlying memory allocator. More...

Header: #include <QRhiStats>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 6.6

Public Variables

quint32 allocCount
quint32 blockCount
qint64 totalPipelineCreationTime
quint64 totalUsageBytes
quint64 unusedBytes
quint64 usedBytes

Detailed Description

Note: This is a RHI API with limited compatibility guarantees, see QRhi for details.

Member Variable Documentation

quint32 QRhiStats::allocCount

Statistic reported from the Vulkan or D3D12 memory allocator.

See also QRhi::statistics().

quint32 QRhiStats::blockCount

Statistic reported from the Vulkan or D3D12 memory allocator.

See also QRhi::statistics().

qint64 QRhiStats::totalPipelineCreationTime

The total time in milliseconds spent in graphics and compute pipeline creation, which usually involves shader compilation or cache lookups, and potentially expensive processing.

Note: The value should not be compared between different backends since the concept of "pipelines" and what exactly happens under the hood during, for instance, a call to QRhiGraphicsPipeline::create(), differ greatly between graphics APIs and their implementations.

See also QRhi::statistics().

quint64 QRhiStats::totalUsageBytes

Valid only with D3D12 currently. Matches IDXGIAdapter3::QueryVideoMemoryInfo().

See also QRhi::statistics().

quint64 QRhiStats::unusedBytes

Statistic reported from the Vulkan or D3D12 memory allocator.

See also QRhi::statistics().

quint64 QRhiStats::usedBytes

Statistic reported from the Vulkan or D3D12 memory allocator.

See also QRhi::statistics().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.