QTechniqueFilter#
A QFrameGraphNode
used to select QTechniques to use. More…
Inherited by: QForwardRenderer
Synopsis#
Functions#
def
addMatch
(filterKey)def
addParameter
(p)def
matchAll
()def
parameters
()def
removeMatch
(filterKey)def
removeParameter
(p)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
A QTechniqueFilter
specifies which techniques are used by the FrameGraph when rendering the entities. QTechniqueFilter
specifies a list of QFilterKey
objects and 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
.
- class PySide6.Qt3DRender.Qt3DRender.QTechniqueFilter([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
The constructor creates an instance with the specified parent
.
- PySide6.Qt3DRender.Qt3DRender.QTechniqueFilter.addMatch(filterKey)#
- Parameters:
filterKey –
PySide6.Qt3DRender.Qt3DRender.QFilterKey
Add the filterKey
to the match vector.
- PySide6.Qt3DRender.Qt3DRender.QTechniqueFilter.addParameter(p)#
- Parameters:
Add parameter
to the vector of parameters that will be passed to the graphics pipeline.
- PySide6.Qt3DRender.Qt3DRender.QTechniqueFilter.matchAll()#
- Return type:
.list of Qt3DRender.QFilterKey
Returns a vector of the current keys for the filter.
- PySide6.Qt3DRender.Qt3DRender.QTechniqueFilter.parameters()#
- Return type:
.list of Qt3DRender.QParameter
Returns the current vector of parameters.
- PySide6.Qt3DRender.Qt3DRender.QTechniqueFilter.removeMatch(filterKey)#
- Parameters:
filterKey –
PySide6.Qt3DRender.Qt3DRender.QFilterKey
Remove the filterKey
from the match vector.
- PySide6.Qt3DRender.Qt3DRender.QTechniqueFilter.removeParameter(p)#
- Parameters:
Remove parameter
from the vector of parameters passed to the graphics pipeline.