FrameGraph node to transfer a rectangle of pixel values from one region of a render target to another. 更多 …
New in version 5.10.
def
destination
()
def
destinationAttachmentPoint
()
def
destinationRect
()
def
interpolationMethod
()
def
setDestination
(destination)
def
setDestinationAttachmentPoint
(destinationAttachmentPoint)
def
setDestinationRect
(destinationRect)
def
setInterpolationMethod
(interpolationMethod)
def
setSource
(source)
def
setSourceAttachmentPoint
(sourceAttachmentPoint)
def
setSourceRect
(sourceRect)
def
source
()
def
sourceAttachmentPoint
()
def
sourceRect
()
def
destinationChanged
()
def
destinationRectChanged
()
def
interpolationMethodChanged
()
def
sourceAttachmentPointChanged
()
def
sourceChanged
()
def
sourceRectChanged
()
This node inserts a
glBlitFrameBufferor an equivalent into the command stream. This provides a more efficient method for copying rectangles between textures or surface backbuffers wrapped byQRenderTargetthan drawing textured quads. It also supports scaling with the specified interpolation method.注意
In practice the
QBlitFramebuffernode will often be used in combination withQNoDrawsince a blit should not involve issuing draw calls for any entities.
PySide2.Qt3DRender.Qt3DRender.
QBlitFramebuffer
(
[
parent=None
]
)
¶
- param parent
QNode
构造新
QBlitFramebuffer
采用给定
parent
.
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
InterpolationMethod
¶
Specifies the interpolation applied if the image is stretched.
|
常量 |
描述 |
|---|---|
|
Qt3DRender.QBlitFramebuffer.Nearest |
Nearest-neighbor interpolation. |
|
Qt3DRender.QBlitFramebuffer.Linear |
Linear interpolation. |
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
destination
(
)
¶
QRenderTarget
Returns the destination render target.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
destinationAttachmentPoint
(
)
¶
AttachmentPoint
Returns the destination attachment point.
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
destinationAttachmentPointChanged
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
destinationChanged
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
destinationRect
(
)
¶
QRectF
Returns the destination rectangle.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
destinationRectChanged
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
interpolationMethod
(
)
¶
Returns the interpolation method.
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
interpolationMethodChanged
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
setDestination
(
destination
)
¶
destination
–
QRenderTarget
Sets the destination render target. The default value is nullptr, in which case the destination is assumed to be be the default framebuffer (i.e. the backbuffer of the current surface), if there is one.
注意
the source and destination must not refer to the same render target.
注意
As with other nodes,
destination
gets automatically parented to the
QBlitFramebuffer
instance when no parent has been set. The lifetime is also tracked, meaning the destination reverts to nullptr in case the currently set
destination
被销毁。
另请参阅
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
setDestinationAttachmentPoint
(
destinationAttachmentPoint
)
¶
destinationAttachmentPoint
–
AttachmentPoint
设置
destinationAttachmentPoint
. Defaults to Qt3DRender::QRenderTargetOutput::AttachmentPoint::Color0.
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
setDestinationRect
(
destinationRect
)
¶
destinationRect
–
QRectF
Sets the destination rectangle to
outputRect
. The coordinates are assumed to follow the normal Qt coordinate system, meaning Y runs from top to bottom.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
setInterpolationMethod
(
interpolationMethod
)
¶
interpolationMethod
–
InterpolationMethod
设置
interpolationMethod
that is applied if the image is stretched. Defaults to Linear.
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
setSource
(
source
)
¶
source
–
QRenderTarget
Sets the source render target. The default value is nullptr, in which case the source is assumed to be be the default framebuffer (i.e. the backbuffer of the current surface), if there is one.
注意
the source and destination must not refer to the same render target.
注意
As with other nodes,
source
gets automatically parented to the
QBlitFramebuffer
instance when no parent has been set. The lifetime is also tracked, meaning the source reverts to nullptr in case the currently set
source
被销毁。
另请参阅
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
setSourceAttachmentPoint
(
sourceAttachmentPoint
)
¶
sourceAttachmentPoint
–
AttachmentPoint
设置
sourceAttachmentPoint
. Defaults to Qt3DRender::QRenderTargetOutput::AttachmentPoint::Color0.
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
setSourceRect
(
sourceRect
)
¶
sourceRect
–
QRectF
Sets the source rectangle to
inputRect
. The coordinates are assumed to follow the normal Qt coordinate system, meaning Y runs from top to bottom.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
source
(
)
¶
QRenderTarget
Returns the source render target.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
sourceAttachmentPoint
(
)
¶
AttachmentPoint
Returns the source attachment point.
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
sourceAttachmentPointChanged
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
sourceChanged
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
sourceRect
(
)
¶
QRectF
Returns the source rectangle.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QBlitFramebuffer.
sourceRectChanged
(
)
¶