Class containing helper functions for the extensions. 更多...
头: | #include <QSSGRenderExtensionHelpers> |
Since: | Qt 6.7 |
void | registerRenderResult (const QSSGFrameData & frameData , QSSGExtensionId extension , QRhiTexture * texture ) |
[static]
void
QSSGRenderExtensionHelpers::
registerRenderResult
(const
QSSGFrameData
&
frameData
,
QSSGExtensionId
extension
,
QRhiTexture
*
texture
)
Register a render result, in form of a texture, for this extension . Once a texture is registered, the extension can be uses as a {QtQuick3D::Texture::textureProvider}{texture provider} in QML.
注意: To ensure that the texture is available for renderables, for example to be used by a {QtQuick3D::Texture} item, textures should be registered during the QSSGRenderExtension::prepareData call of the extension.
注意: Calling this function with a new texture will any previously registered texture.
注意: A texture can be unregistered by registering a nullptr for this extension.
frameData
另请参阅 textureProvider .