QSSGRenderContextInterface Class

QtQuick3D 渲染引擎子部分的聚合类。更多

Header: #include <QSSGRenderContextInterface>
Since: Qt 6.7

公共函数

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

详细说明

QSSGRenderContextInterface 及其所拥有的对象总是按QQuickWindow ,因此也是按场景图渲染线程。某些资源(如着色器库)可能是共享的,但这些都由 QSSGRenderContextInterface 在内部处理。

注意: 有些子组件可能不会作为半公开组件公开,或者它们的使用可能需要使用私有头文件。在这种情况下,它们的 API 很有可能在不久的将来被更改。当这些类的应用程序接口稳定后,它们将与其他半公开应用程序接口一样,以同样的保证提供给用户。

成员函数文档

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

返回封装QRhi 相关设置和辅助功能的上下文对象。

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