QRhiStats Struct
由底层内存分配器提供的统计数据。更多内容...
| 标题: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) 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()。
© 2026 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.