QRhiNullInitParams Struct

Null backend specific initialization parameters. 更多...

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

详细描述

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

A Null QRhi needs no special parameters for initialization.

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

The Null backend does not issue any graphics calls and creates no resources. All QRhi operations will succeed as normal so applications can still be run, albeit potentially at an unthrottled speed, depending on their frame rendering strategy.