Provides a way of specifying a render target. 更多 …
A
QRenderTargetSelectoris used to select activeQRenderTargetfor the FrameGraph. WhenQRenderTargetSelectoris present in the FrameGraph, the rendering is directed into QTexture objects or draw buffers instead of the surface specified in theQRenderSurfaceSelector. A render buffer is automatically generated for an attachment point if drawBuffers contain attachment point that any output in theQRenderTargetdo not specify. If the drawBuffers is empty, the renderer will default to using all the outputs inQRenderTarget.
PySide2.Qt3DRender.Qt3DRender.
QRenderTargetSelector
(
[
parent=None
]
)
¶
- param parent
QNode
Constructs
QRenderTargetSelector
with given
parent
.
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
outputs
(
)
¶
Returns the list of draw buffers for the current
QRenderTargetSelector
实例。
另请参阅
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
setOutputs
(
buffers
)
¶
buffers –
Sets the draw
buffers
to be used. The draw buffers should be matching the
AttachmentPoint
defined in the attachments of the
QRenderTarget
associated to the
QRenderTargetSelector
实例。
注意
At render time, if no draw buffer has been specified, the renderer will default to using all the attachments’ draw buffers.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
setTarget
(
target
)
¶
target
–
QRenderTarget
另请参阅
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
target
(
)
¶
QRenderTarget
另请参阅
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
targetChanged
(
target
)
¶
target
–
QRenderTarget