Buffer QML Type
Creates or references a color buffer to be used for a pass of an Effect.
更多...
特性
详细描述
A Buffer can be used to create intermediate buffers to share data between
render passes
in an
Effect
.
注意:
若
name
property of the Buffer is empty, it will reference the default output texture of the render pass.
特性文档编制
Specifies the buffer allocation flags. The default is Buffer.None.
常量
|
描述
|
Buffer.None
|
No special behavior.
|
Buffer.SceneLifetime
|
The buffer is allocated for the whole lifetime of the scene.
|
Specifies the texture format. The default value is Buffer.RGBA8.
常量
|
值
|
Buffer.RGBA8
|
Buffer.RGBA16F
|
Buffer.RGBA32F
|
Buffer.R8
|
Buffer.R16
|
Buffer.R16F
|
Buffer.R32F
|
Specifies the name of the buffer.
注意:
When this property is empty, the Buffer will refer to the default output texture of the
render pass
instead of allocating a buffer. This can be useful to override certain settings of the output, such as the texture format, without introducing a new, separate intermediate texture.
Specifies the size multiplier of the buffer. For instance, a value of
1.0
creates a buffer with the same size as the effect's input texture while
0.5
creates buffer where both width and height is half as big. The default value is 1.0.
Specifies the behavior for texture coordinates when sampling outside the [0, 1] range. The default is Buffer.ClampToEdge.
常量
|
描述
|
Buffer.ClampToEdge
|
Clamp coordinates to the edges.
|
Buffer.Repeat
|
Wrap the coordinates at the edges to tile the texture.
|
Buffer.MirroredRepeat
|
Wrap the coordinate at the edges, but mirror the texture when tiling it.
|
Specifies the texture filtering mode when sampling the contents of the Buffer. The default value is Buffer.Linear.
常量
|
描述
|
Buffer.Nearest
|
Use nearest-neighbor filtering.
|
Buffer.Linear
|
Use linear filtering.
|