BufferInput QML Type

Defines an input buffer to be used as input for a pass of an Effect. 更多...

import 語句: import QtQuick3D
繼承: 命令

特性

詳細描述

BufferInput is a 命令 which can be added to the list of commands in the Pass of an Effect . When executed, it will expose the buffer as a sample to the shaders in the render pass. The shaders must declare a sampler with the name given in the BufferInput's sampler 特性。

This can be used for sharing intermediate results between the different passes of an effect.

另請參閱 TextureInput .

特性文檔編製

buffer : Buffer

Specifies the buffer which should be exposed to the shader.

sampler : string

Specifies the name under which the buffer is exposed to the shader. When this property is not set, the buffer is exposed with the built-in name INPUT .