RenderTarget QML Type
RenderTarget 类封装了一个目标(通常是一个帧缓冲区对象),渲染器可以将其内容渲染到该目标中。更多内容...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QRenderTarget |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新的代码中使用它。
属性
- attachments : list<RenderTargetOutput>
详细说明
一个渲染目标(RenderTarget)由渲染目标着色器(RenderTargetOutput )对象组成,这些对象指定了渲染目标所渲染到的缓冲区。用户可以通过将多个纹理附加到不同的附加点来指定多渲染目标(MRT)。如果用户尝试将多个纹理附加到同一个附加点,则结果未定义。 在渲染时,仅使用RenderTargetSelector 中指定的绘制缓冲区。
属性文档
attachments : list<RenderTargetOutput>
用于固定RenderTarget 的附件。
© 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.