QRenderTargetSelector¶
Provides a way of specifying a render target. More…

Synopsis¶
Functions¶
def
outputs()def
setOutputs(buffers)def
target()
Slots¶
def
setTarget(target)
Signals¶
def
targetChanged(target)
Detailed Description¶
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.
- class PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector([parent=None])¶
- param parent:
Constructs
QRenderTargetSelectorwith givenparent.
- PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.outputs()¶
- Return type:
Returns the list of draw buffers for the current
QRenderTargetSelectorinstance.See also
- PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.setOutputs(buffers)¶
- Parameters:
buffers –
Sets the draw
buffersto be used. The draw buffers should be matching theAttachmentPointdefined in the attachments of theQRenderTargetassociated to theQRenderTargetSelectorinstance.Note
At render time, if no draw buffer has been specified, the renderer will default to using all the attachments’ draw buffers.
See also
- PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.setTarget(target)¶
- Parameters:
Holds the current render target
- PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.target()¶
- Return type:
Holds the current render target
- PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.targetChanged(target)¶
- Parameters:
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.