本页内容

BlitFramebuffer QML Type

FrameGraph 节点,用于将渲染目标中一个区域的像素值矩形传输到另一个区域。更多...

Import Statement: import Qt3D.Render 2.12
In C++: QBlitFramebuffer
Inherits:

FrameGraphNode

Status: Deprecated

此类型已弃用。我们强烈建议不要在新的代码中使用它。

属性

详细说明

该节点将glBlitFrameBuffer 或其等效对象插入到命令流中。与绘制带纹理的四边形相比,这为在纹理或由QRenderTarget封装的表面后缓冲区之间复制矩形提供了一种更高效的方法。它还支持使用指定的插值方法进行缩放。

注意:在 实际应用中 ,BlitFramebuffer节点通常会与NoDraw 结合使用,因为位图复制操作不应涉及对任何实体的绘制调用。

属性文档

destination : RenderTarget

指定目标渲染目标。若未设置,则假定目标为默认帧缓冲区(即当前表面的后缓冲区),前提是有该缓冲区。

注意: 源和目标不得指向同一个渲染目标。

destinationAttachmentPoint : RenderTargetOutput.AttachmentPoint

指定源附着点。默认值为 RenderTargetOutput.AttachmentPoint.Color0。

destinationRect : Rect

指定目标矩形。坐标默认采用标准的 Qt 坐标系,即 Y 轴从上到下。

interpolationMethod : InterpolationMethod

指定在拉伸图像时应用的插值方式。默认值为“线性”。

source : RenderTarget

指定源渲染目标。如果未设置,则假定源为默认帧缓冲区(即当前表面的后缓冲区),如果存在的话。

注意: 源和目标不得指向同一个渲染目标。

sourceAttachmentPoint : RenderTargetOutput.AttachmentPoint

指定源附件点。默认值为 RenderTargetOutput.AttachmentPoint.Color0。

sourceRect : Rect

指定源矩形。坐标按常规的 Qt 坐标系表示,即 Y 轴从上到下。

© 2026 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.