在本页

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

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