本页内容

QRhiNullInitParams 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
继承自: QRhiInitParams

详细说明

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

NullQRhi 在初始化时无需任何特殊参数。

QRhiNullInitParams params;
rhi = QRhi::create(QRhi::Null, &params);

Null 后端不会发出任何图形调用,也不会创建任何资源。所有QRhi 操作都将如常成功,因此应用程序仍可运行,但根据其帧渲染策略的不同,运行速度可能会不受限制。

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