本页内容

Qt3DRender::QShaderData Class

class Qt3DRender::QShaderData

提供了一种指定 Uniform Block 或着色器结构值的方法。更多内容...

标题: #include <Qt3DRender/QShaderData>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
继承自: Qt3DCore::QComponent
状态: 已弃用

该类已弃用。我们强烈建议不要在新代码中使用它。

公共函数

QShaderData(Qt3DCore::QNode *parent = nullptr)
Qt3DRender::PropertyReaderInterfacePtr propertyReader() const

详细说明

注意:在 继承 QShaderData 并为其添加属性时 ,请注意,若需嵌套一个内部的Qt3DRender::QShaderData ,该属性的数据类型应为Qt3DRender::QShaderData*,而非您的子类名称。

成员函数文档

[explicit] QShaderData::QShaderData(Qt3DCore::QNode *parent = nullptr)

使用指定的parent 构建一个新的QShaderData。

Qt3DRender::PropertyReaderInterfacePtr QShaderData::propertyReader() const

QShaderData::propertyReader 返回此着色器数据的 PropertyReaderInterfacePtr

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