QSSGFrameData Class

存储类,包含为帧收集的数据。更多

Header: #include <QSSGFrameData>
Since: Qt 6.7

公共函数

QSSGCameraId activeCamera() const
QSSGRhiGraphicsPipelineState getPipelineState() const
QSSGFrameData::Result getRenderResult(QSSGFrameData::RenderResult id) const

详细说明

成员函数文档

QSSGCameraId QSSGFrameData::activeCamera() const

返回场景中的活动摄像机,如果找不到则为空。

QSSGRhiGraphicsPipelineState QSSGFrameData::getPipelineState() const

返回此帧的基本流水线状态

QSSGFrameData::Result QSSGFrameData::getRenderResult(QSSGFrameData::RenderResult id) const

返回来自id 的可渲染纹理结果。如果没有找到匹配的id ,则返回nullptr

注: 即使函数返回非空结果,返回的 QSSGRhiRenderableTexture 也可能尚未准备就绪,除非已经执行了纹理的传递渲染。

注意: 返回值仅在当前帧内有效。在每个新帧中,可呈现纹理都将被重置,因此应重新查询。

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