Qt3DRender::QShaderData Class
class Qt3DRender::QShaderData提供一种指定统一块或着色器结构值的方法。更多
头文件: | #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
© 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.