本页内容

QSSGRenderExtensionHelpers Class

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

Header: #include <qssgrenderhelpers.h>
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.