本页内容

RenderTargetOutput QML Type

RenderTargetOutput 类型用于指定渲染目标的附件(无论是颜色纹理、深度纹理等……)。更多内容……

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

Node

Status: Deprecated

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

属性

详细说明

RenderTargetOutput 指定了附加到渲染目标上的纹理的附加点和参数。除了附加点之外,还可以指定纹理的 Mip 级别、图层和立方贴图面。附加到 RenderTargetOutput 上的纹理必须与给定的参数兼容。

注意:左(Left )和右(Right)附着点是特殊值。它们并非指渲染目标对象,而是指用于立体渲染的两个后缓冲区中的任意一个。

属性文档

attachmentPoint : enumeration

用于固定RenderTargetOutput 的安装点。

另请参阅 Qt3DRender::QRenderTargetOutput::AttachmentPoint 。

face : enumeration

保存渲染所指向的已附加立方贴图纹理的表面。

  • Texture.CubeMapPositiveX
  • Texture.CubeMapNegativeX
  • Texture.CubeMapPositiveY
  • Texture.CubeMapNegativeY
  • Texture.CubeMapPositiveZ
  • Texture.CubeMapNegativeZ

另请参阅 Qt3DRender::QAbstractTexture::CubeMapFace 。

layer : int

保存渲染所针对的附加纹理的图层。

mipLevel : int

保存渲染所指向的附加纹理的MIP级别。

texture : Texture

保存附加到附加点上的纹理。

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