QRhiStats Struct

由底层内存分配器提供的统计数据。更多

Header: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Qt 6.6

公共变量

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

详细说明

注意: 这是一个 RHI API,具有有限的兼容性保证,详情请参见QRhi

成员变量文档

quint32 QRhiStats::allocCount

Vulkan 或 D3D12 内存分配器报告的统计数据。

另请参见 QRhi::statistics()。

quint32 QRhiStats::blockCount

Vulkan 或 D3D12 内存分配器报告的统计数据。

另请参见 QRhi::statistics()。

qint64 QRhiStats::totalPipelineCreationTime

以毫秒为单位的图形和计算流水线创建总耗时,通常涉及着色器编译或缓存查找,以及潜在的昂贵处理。

注意: 该值不应在不同后端之间进行比较,因为 "流水线 "的概念以及在调用QRhiGraphicsPipeline::create() 等过程中的具体操作在图形 API 及其实现之间存在很大差异。

另请参见 QRhi::statistics()。

quint64 QRhiStats::totalUsageBytes

目前仅对 D3D12 有效。与 IDXGIAdapter3::QueryVideoMemoryInfo() 匹配。

另请参阅 QRhi::statistics().

quint64 QRhiStats::unusedBytes

Vulkan 或 D3D12 内存分配器报告的统计数据。

另请参见 QRhi::statistics()。

quint64 QRhiStats::usedBytes

Vulkan 或 D3D12 内存分配器报告的统计数据。

另请参见 QRhi::statistics()。

© 2025 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.