QRenderPassFilter Class▲
-
Header: QRenderPassFilter
-
Since: Qt 5.7
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
-
qmake: QT += 3drender
-
Inherited By:
-
Instantiated By: qml-qt3d-render-renderpassfilter.xml
-
Inherits: Qt3DRender::QFrameGraphNode
Detailed Description▲
A Qt3DRender::QRenderPassFilter FrameGraph node is used to select which Qt3DRender::QRenderPass objects are selected for drawing. QRenderPassFilter specifies a list of Qt3DRender::QFilterKey objects and Qt3DRender::QParameter objects. When QRenderPassFilter is present in the FrameGraph, only the QRenderPass objects, whose Qt3DRender::QFilterKey objects match the keys in QRenderPassFilter are selected for rendering. If no QRenderPassFilter is present, then all QRenderPass objects are selected for rendering. The parameters in the list can be used to set values for shader parameters. The parameters in QRenderPassFilter override parameters in QTechniqueFilter, QMaterial, QEffect, QTechnique and QRenderPass.
Member Function Documentation▲
[explicit] QRenderPassFilter::QRenderPassFilter(Qt3DCore::QNode *parent = nullptr)▲
The constructor creates an instance with the specified parent.
void QRenderPassFilter::addMatch(Qt3DRender::QFilterKey *filterKey)▲
Add the filterKey to the match vector.
void QRenderPassFilter::addParameter(Qt3DRender::QParameter *parameter)▲
Add the given parameter to the parameter vector.
QList<Qt3DRender::QFilterKey *> QRenderPassFilter::matchAny() const▲
Returns a vector of the current keys for the filter.
QList<Qt3DRender::QParameter *> QRenderPassFilter::parameters() const▲
Returns the current vector of parameters.
void QRenderPassFilter::removeMatch(Qt3DRender::QFilterKey *filterKey)▲
Remove the filterKey from the match vector.
void QRenderPassFilter::removeParameter(Qt3DRender::QParameter *parameter)▲
Remove the given parameter from the parameter vector.