QSSGFrameData Class

Storage class containing data collected for a frame. 更多...

头: #include <QSSGFrameData>
Since: Qt 6.7

公共函数

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

详细描述

成员函数文档编制

QSSGCameraId QSSGFrameData:: activeCamera () const

Returns The active camera for the scene, or null if non could be found.

QSSGRhiGraphicsPipelineState QSSGFrameData:: getPipelineState () const

Returns Base pipeline state for this frame

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

Returns The renderable texture result from id . nullptr if no matching id was found.

注意: Even if the function returns a non-null result, the returned QSSGRhiRenderableTexture might not be ready unless the pass rendering to the texture has been executed.

注意: The returned value is only valid within the current frame. On each new frame the renderable will be reset and should therefore be queried again.