En esta página

QSSGRenderExtensionHelpers Class

Clase que contiene funciones auxiliares para las extensiones. Más...

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

Miembros públicos estáticos

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

Descripción detallada

Documentación de las funciones miembro

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

Registra un resultado de renderizado, en forma de textura, para este extension. Una vez registrada la textura, la extensión se puede utilizar como {QtQuick3D::Texture::textureProvider}{proveedor de texturas} en QML.

Nota: Para garantizar que el objeto « texture » esté disponible para los elementos renderizables, por ejemplo, para que lo utilice un elemento {QtQuick3D::Texture}, las texturas deben registrarse durante la llamada a « QSSGRenderExtension::prepareData » de la extensión.

Nota: Al llamar a esta función con una nueva textura, se dará de baja cualquier textura registrada previamente. Para dar de baja una textura, llame a esta función con una textura nullptr.

frameData

Véase también 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.