A
QFrameGraphNodeused to select QTechniques to use. 更多 …
继承者: Qt3DExtras.QForwardRenderer
def
addMatch
(filterKey)
def
addParameter
(p)
def
matchAll
()
def
参数
()
def
removeMatch
(filterKey)
def
removeParameter
(p)
A
QTechniqueFilterspecifies which techniques are used by the FrameGraph when rendering the entities.QTechniqueFilterspecifies a list ofQFilterKeyobjects andQParameterobjects. WhenQTechniqueFilteris 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 inQTechniqueFilterare overridden by parameters inQTechniqueandQRenderPass.
PySide2.Qt3DRender.Qt3DRender.
QTechniqueFilter
(
[
parent=None
]
)
¶
- param parent
QNode
The constructor creates an instance with the specified
parent
.
PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.
addMatch
(
filterKey
)
¶
filterKey
–
QFilterKey
Add the
filterKey
to the match vector.
PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.
addParameter
(
p
)
¶
p
–
QParameter
Add
参数
to the vector of parameters that will be passed to the graphics pipeline.
PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.
matchAll
(
)
¶
Returns a vector of the current keys for the filter.
PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.
参数
(
)
¶
Returns the current vector of parameters.
PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.
removeMatch
(
filterKey
)
¶
filterKey
–
QFilterKey
Remove the
filterKey
from the match vector.
PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.
removeParameter
(
p
)
¶
p
–
QParameter
移除
参数
from the vector of parameters passed to the graphics pipeline.