QRenderTargetSelector

Provides a way of specifying a render target. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector

Synopsis

Functions

Slots

Signals

Detailed Description

A QRenderTargetSelector is used to select active QRenderTarget for the FrameGraph. When QRenderTargetSelector is present in the FrameGraph, the rendering is directed into QTexture objects or draw buffers instead of the surface specified in the QRenderSurfaceSelector . A render buffer is automatically generated for an attachment point if drawBuffers contain attachment point that any output in the QRenderTarget do not specify. If the drawBuffers is empty, the renderer will default to using all the outputs in QRenderTarget .

class PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector([parent=None])

Constructs QRenderTargetSelector with given parent .

PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.outputs()
Return type:

Returns the list of draw buffers for the current QRenderTargetSelector instance.

See also

setOutputs()

PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.setOutputs(buffers)
Parameters:

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

Note

At render time, if no draw buffer has been specified, the renderer will default to using all the attachments’ draw buffers.

See also

outputs()

PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.setTarget(target)
Parameters:

targetPySide2.Qt3DRender.Qt3DRender.QRenderTarget

Holds the current render target

PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.target()
Return type:

PySide2.Qt3DRender.Qt3DRender.QRenderTarget

Holds the current render target

PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.targetChanged(target)
Parameters:

targetPySide2.Qt3DRender.Qt3DRender.QRenderTarget