本页内容

BufferInput QML Type

定义一个输入缓冲区,用作效果器某轮处理的输入。更多...

Import Statement: import QtQuick3D
Inherits:

Command

属性

详细说明

BufferInput 是一个Command ,可添加到Effect 中Pass 的命令列表中。执行后,它将把缓冲区作为样本提供给渲染阶段中的着色器。着色器必须声明一个采样器,其名称需与BufferInput的sampler 属性中指定的名称一致。

这可用于在效果的不同渲染通道之间共享中间结果。

另请参阅 TextureInput 。

属性文档

buffer : Buffer

指定应向着色器公开的buffer 。

sampler : string

指定缓冲区向着色器暴露时使用的名称。如果未设置此属性,则缓冲区将使用内置名称INPUT 进行暴露。

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