In questa pagina

QSSGFrameData Class

Classe di archiviazione contenente i dati raccolti per un frame. Altro...

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

Funzioni pubbliche

QSSGCameraId activeCamera() const
QSSGNodeIdList getLayerNodes(QSSGCameraId cameraId, QSSGFrameData::TypeMask typeMask = NodeMask) const
QSSGNodeIdList getLayerNodes(quint32 layerMask, QSSGFrameData::TypeMask typeMask = NodeMask) const
QSSGRhiGraphicsPipelineState getPipelineState() const
QSSGFrameData::Result getRenderResult(QSSGFrameData::RenderResult id) const
QSSGFrameData::Result getRenderResult(QSSGResourceId userPassId, QSSGFrameData::AttachmentSelector attachment) const
void scheduleRenderResults(QSSGFrameData::RenderResults results) const

Descrizione dettagliata

Documentazione delle funzioni membro

QSSGCameraId QSSGFrameData::activeCamera() const

Restituisce la telecamera attiva per la scena oppure null se non è stata trovata alcuna telecamera.

QSSGNodeIdList QSSGFrameData::getLayerNodes(QSSGCameraId cameraId, QSSGFrameData::TypeMask typeMask = NodeMask) const

Restituisce un elenco dei nodi dei livelli relativi alla telecamera specificata ( cameraId ) che corrispondono alla maschera del livello ( typeMask). Se la telecamera non dispone di una maschera di livello, viene restituito un elenco vuoto.

QSSGNodeIdList QSSGFrameData::getLayerNodes(quint32 layerMask, QSSGFrameData::TypeMask typeMask = NodeMask) const

Restituisce un elenco di nodi del livello che corrispondono ai criteri specificati in layerMask e typeMask.

QSSGRhiGraphicsPipelineState QSSGFrameData::getPipelineState() const

Restituisce lo stato della pipeline di base per questo frame

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

Restituisce la texture renderizzabile risultante da ` id`. Se non viene trovato alcun ` id ` corrispondente, restituisce ` nullptr `.

Nota: anche se la funzione restituisce un risultato non nullo, la QSSGRhiRenderableTexture restituita potrebbe non essere pronta a meno che non sia stato eseguito il rendering del pass sulla texture.

Nota: il valore restituito è valido solo all’interno del fotogramma corrente. Ad ogni nuovo fotogramma il renderable verrà reimpostato e dovrà quindi essere interrogato nuovamente.

QSSGFrameData::Result QSSGFrameData::getRenderResult(QSSGResourceId userPassId, QSSGFrameData::AttachmentSelector attachment) const

Restituisce la texture renderizzabile risultante da un passaggio di rendering definito dall'utente con l'userPassId specificato. Se non è stato possibile trovare alcun passaggio utente corrispondente, oppure se il passaggio utente non ha prodotto alcuna texture renderizzabile, viene restituito un Result non valido.

Nota: anche se la funzione restituisce un risultato diverso da null, la QSSGRhiRenderableTexture restituita potrebbe non essere pronta a meno che non sia stato eseguito il passaggio di rendering sulla texture.

Nota: il valore restituito è valido solo all’interno del fotogramma corrente. Ad ogni nuovo fotogramma la texture renderizzabile verrà reimpostata e dovrà quindi essere interrogata nuovamente.

void QSSGFrameData::scheduleRenderResults(QSSGFrameData::RenderResults results) const

Imposta l'results specificato in modo che sia disponibile per questo frame.

Questa funzione deve essere chiamata esclusivamente durante la fase di preparazione in QSSGRenderExtension::prepareData().

Nota: i risultati richiesti potrebbero non essere disponibili se il livello sottostante non li supporta o se il livello non contiene dati che rendano necessaria la generazione dei risultati richiesti; in tal caso, getRenderResult() restituirà un risultato vuoto.

Vedi anche getRenderResult().

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