Buffer QML Type
Defines a color buffer to be used for a pass of an Effect. More...
Import Statement: | import QtQuick3D 1.0 |
Properties
- bufferFlags : enumeration
- format : enumeration
- name : string
- sizeMultiplier : real
- textureCoordOperation : enumeration
- textureFilterOperation : enumeration
Detailed Description
In practice a Buffer is backed by a texture, unless the name property is empty.
Property Documentation
bufferFlags : enumeration |
Specifies the buffer allocation flags.
Constant | Description |
---|---|
Buffer.None | No special behavior, this is the default. |
Buffer.SceneLifetime | The buffer is allocated for the whole lifetime of the scene. |
format : enumeration |
Specifies the texture format. The default value is RGBA8.
Constant | Value |
---|---|
Buffer.RGBA8 | |
Buffer.RGBA16F | |
Buffer.RGBA32F | |
Buffer.R8 | |
Buffer.R16 | |
Buffer.R16F | |
Buffer.R32F |
name : string |
Specifies the name of the buffer.
It must be set to a non-empty value in most cases. An empty name refers to the default output texture of an effect render pass. This is useful to override certain settings of the output, such as the texture format, without introducing a new, separate intermediate texture.
sizeMultiplier : real |
Specifies the size multiplier of the buffer. 1.0
creates a buffer with the same size as the effect's input texture while 0.5
creates buffer with the width and height halved. The default value is 1.0
textureCoordOperation : enumeration |
Specifies the behavior for texture coordinates outside the [0, 1] range. The default is ClampToEdge.
Constant | Description |
---|---|
Buffer.ClampToEdge | Clamp coordinate to edge. |
Buffer.MirroredRepeat | Repeat the coordinate, but flip direction at the beginning and end. |
Buffer.Repeat | Repeat the coordinate always from the beginning. |
textureFilterOperation : enumeration |
Specifies the texture filtering mode when sampling the texture backing the Buffer. The default value is Linear.
Constant | Description |
---|---|
Buffer.Nearest | Use nearest-neighbor. |
Buffer.Linear | Use linear filtering. |