Nesta página

QSSGRenderExtensionHelpers Class

Classe que contém funções auxiliares para as extensões. Mais...

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

Membros públicos estáticos

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

Descrição detalhada

Documentação das funções-membro

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

Registre um resultado de renderização, na forma de uma textura, para este ` extension`. Depois que uma textura for registrada, a extensão poderá ser usada como um {QtQuick3D::Texture::textureProvider}{provedor de textura} no QML.

Observação: Para garantir que o ` texture ` esteja disponível para elementos renderizáveis, por exemplo, para ser usado por um item `{QtQuick3D::Texture}`, as texturas devem ser registradas durante a chamada ` QSSGRenderExtension::prepareData ` da extensão.

Observação: Chamar esta função com uma nova textura cancelará o registro de qualquer textura registrada anteriormente. Para cancelar o registro de uma textura, chame esta função com uma textura ` nullptr `.

frameData

Veja também 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.