内容表

上一话题

Qt3DRender.QTechnique

下一话题

Qt3DRender.QTexture1D

Qt3DRender.QTechniqueFilter

A QFrameGraphNode used to select QTechniques to use. 更多

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter

继承者: Qt3DExtras.QForwardRenderer

概要

函数

详细描述

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 are overridden by parameters in QTechnique and QRenderPass .

class 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.