QSSGRenderExtensionHelpers Class

包含扩展功能辅助函数的类。更多

Header: #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)

extension 注册一个纹理形式的渲染结果。一旦纹理被注册,该扩展就可以在 QML 中作为 {QtQuick3D::Texture::textureProvider}{ 纹理提供者} 使用。

注: 为确保texture 可用于渲染,例如被 {QtQuick3D::Texture} 项目使用,纹理应在扩展的QSSGRenderExtension::prepareData 调用期间注册。

注: 使用新纹理调用此函数时,之前注册的纹理都将被删除。

注: 可以通过为该扩展注册一个 nullptr 来取消注册纹理。

frameData

另请参阅 textureProvider

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