QRhiStats Struct

Statistics provided from the underlying memory allocator. 更多...

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

公共变量

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

详细描述

注意: This is a RHI API with limited compatibility guarantees, see QRhi 了解细节。

成员变量文档编制

quint32 QRhiStats:: allocCount

Statistic reported from the Vulkan or D3D12 memory allocator.

另请参阅 QRhi::statistics ().

quint32 QRhiStats:: blockCount

Statistic reported from the Vulkan or D3D12 memory allocator.

另请参阅 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.

注意: 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.

另请参阅 QRhi::statistics ().

quint64 QRhiStats:: totalUsageBytes

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

另请参阅 QRhi::statistics ().

quint64 QRhiStats:: unusedBytes

Statistic reported from the Vulkan or D3D12 memory allocator.

另请参阅 QRhi::statistics ().

quint64 QRhiStats:: usedBytes

Statistic reported from the Vulkan or D3D12 memory allocator.

另请参阅 QRhi::statistics ().