A QFrameGraphNode used to select QTechniques to use. More...
Header: | #include <QTechniqueFilter> |
CMake: | find_package(Qt6 COMPONENTS 3drender REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | TechniqueFilter |
Inherits: | Qt3DRender::QFrameGraphNode |
Inherited By: |
QTechniqueFilter(Qt3DCore::QNode *parent = nullptr) | |
void | addMatch(Qt3DRender::QFilterKey *filterKey) |
void | addParameter(Qt3DRender::QParameter *parameter) |
QList<Qt3DRender::QFilterKey *> | matchAll() const |
QList<Qt3DRender::QParameter *> | parameters() const |
void | removeMatch(Qt3DRender::QFilterKey *filterKey) |
void | removeParameter(Qt3DRender::QParameter *parameter) |
A Qt3DRender::QTechniqueFilter specifies which techniques are used by the FrameGraph when rendering the entities. QTechniqueFilter specifies a list of Qt3DRender::QFilterKey objects and Qt3DRender::QParameter objects. When QTechniqueFilter is present in the FrameGraph, only the techiques matching the keys in the list are used for rendering. The parameters in the list can be used to set values for shader parameters. The parameters in QTechniqueFilter override parameters in QMaterial, QEffect, QTechnique and QRenderPass, but are overridden by parameters in QRenderPassFilter.
The constructor creates an instance with the specified parent.
Add the filterKey to the match vector.
Add parameter to the vector of parameters that will be passed to the graphics pipeline.
Returns a vector of the current keys for the filter.
Returns the current vector of parameters.
Remove the filterKey from the match vector.
Remove parameter from the vector of parameters passed to the graphics pipeline.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qt3drender-qtechniquefilter.html