本页内容

QSSGRenderContextInterface Class

QtQuick3D 渲染引擎子组件的聚合类。更多...

Header: #include <qssgrendercontextcore.h>
Since: Qt 6.7

公共函数

const std::unique_ptr<QSSGRhiContext> &rhiContext() const

详细说明

QSSGRenderContextInterface 及其拥有的对象始终是针对每个QQuickWindow 的,因此也是针对每个场景图渲染线程的。某些资源(如着色器库)可能会被共享,但这一切都由 QSSGRenderContextInterface 在内部处理。

注意:某些 子组件可能不会作为半公共接口暴露,或者其使用可能需要私有头文件。在这些情况下,其 API 在不久的将来发生变更的可能性很高。 一旦这些类的 API 趋于稳定,它们将与其他半公开 API 一样,提供相同的稳定性保证。

成员函数文档

const std::unique_ptr<QSSGRhiContext> &QSSGRenderContextInterface::rhiContext() const

返回一个封装了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.