QBlitFramebuffer

FrameGraph node to transfer a rectangle of pixel values from one region of a render target to another. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer

New in version 5.10.

Synopsis

Functions

Signals

Detailed Description

This node inserts a glBlitFrameBuffer or an equivalent into the command stream. This provides a more efficient method for copying rectangles between textures or surface backbuffers wrapped by QRenderTarget than drawing textured quads. It also supports scaling with the specified interpolation method.

Note

In practice the QBlitFramebuffer node will often be used in combination with QNoDraw since a blit should not involve issuing draw calls for any entities.

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

Constructs a new QBlitFramebuffer with the given parent .

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.InterpolationMethod

Specifies the interpolation applied if the image is stretched.

Constant

Description

Qt3DRender.QBlitFramebuffer.Nearest

Nearest-neighbor interpolation.

Qt3DRender.QBlitFramebuffer.Linear

Linear interpolation.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.destination()
Return type:

PySide2.Qt3DRender.Qt3DRender.QRenderTarget

Specifies the destination render target. When not set, the destination is assumed to be the default framebuffer (i.e. the backbuffer of the current surface), if there is one.

Note

the source and destination must not refer to the same render target.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.destinationAttachmentPoint()
Return type:

AttachmentPoint

Specifies the target attachment point.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.destinationAttachmentPointChanged()
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.destinationChanged()
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.destinationRect()
Return type:

PySide2.QtCore.QRectF

Specifies the destination rectangle. The coordinates are assumed to follow the normal Qt coordinate system, meaning Y runs from top to bottom.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.destinationRectChanged()
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.interpolationMethod()
Return type:

InterpolationMethod

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.interpolationMethodChanged()
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.setDestination(destination)
Parameters:

destinationPySide2.Qt3DRender.Qt3DRender.QRenderTarget

Specifies the destination render target. When not set, the destination is assumed to be the default framebuffer (i.e. the backbuffer of the current surface), if there is one.

Note

the source and destination must not refer to the same render target.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.setDestinationAttachmentPoint(destinationAttachmentPoint)
Parameters:

destinationAttachmentPointAttachmentPoint

Specifies the target attachment point.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.setDestinationRect(destinationRect)
Parameters:

destinationRectPySide2.QtCore.QRectF

Specifies the destination rectangle. The coordinates are assumed to follow the normal Qt coordinate system, meaning Y runs from top to bottom.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.setInterpolationMethod(interpolationMethod)
Parameters:

interpolationMethodInterpolationMethod

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.setSource(source)
Parameters:

sourcePySide2.Qt3DRender.Qt3DRender.QRenderTarget

Specifies the source render target. When not set, the source is assumed to be the default framebuffer (i.e. the backbuffer of the current surface), if there is one.

Note

the source and destination must not refer to the same render target.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.setSourceAttachmentPoint(sourceAttachmentPoint)
Parameters:

sourceAttachmentPointAttachmentPoint

Specifies the source attachment point.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.setSourceRect(sourceRect)
Parameters:

sourceRectPySide2.QtCore.QRectF

Specifies the source rectangle. The coordinates are assumed to follow the normal Qt coordinate system, meaning Y runs from top to bottom.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.source()
Return type:

PySide2.Qt3DRender.Qt3DRender.QRenderTarget

Specifies the source render target. When not set, the source is assumed to be the default framebuffer (i.e. the backbuffer of the current surface), if there is one.

Note

the source and destination must not refer to the same render target.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.sourceAttachmentPoint()
Return type:

AttachmentPoint

Specifies the source attachment point.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.sourceAttachmentPointChanged()
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.sourceChanged()
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.sourceRect()
Return type:

PySide2.QtCore.QRectF

Specifies the source rectangle. The coordinates are assumed to follow the normal Qt coordinate system, meaning Y runs from top to bottom.

PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.sourceRectChanged()