In questa pagina

QSSGRenderExtensionHelpers Class

Classe contenente funzioni di supporto per le estensioni. Altro...

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

Membri pubblici statici

void registerRenderResult(const QSSGFrameData &frameData, QSSGExtensionId extension, QRhiTexture *texture)

Descrizione dettagliata

Documentazione delle funzioni membro

[static] void QSSGRenderExtensionHelpers::registerRenderResult(const QSSGFrameData &frameData, QSSGExtensionId extension, QRhiTexture *texture)

Registra un risultato di rendering, sotto forma di texture, per questo extension. Una volta registrata la texture, l'estensione può essere utilizzata come {QtQuick3D::Texture::textureProvider}{fornitore di texture} in QML.

Nota: per garantire che l’ texture sia disponibile per gli elementi renderizzabili, ad esempio per essere utilizzato da un elemento {QtQuick3D::Texture}, le texture devono essere registrate durante la chiamata QSSGRenderExtension::prepareData dell’estensione.

Nota: la chiamata a questa funzione con una nuova texture annullerà la registrazione di qualsiasi texture registrata in precedenza. Per annullare la registrazione di una texture, chiamare questa funzione con una texture di tipo nullptr.

frameData

Vedi anche textureProvider.

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