Buffer QML Type

Defines a color buffer to be used for a pass of an Effect. More...

Import Statement: import QtQuick3D 1.0

Properties

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.

ConstantDescription
Buffer.NoneNo special behavior, this is the default.
Buffer.SceneLifetimeThe buffer is allocated for the whole lifetime of the scene.

format : enumeration

Specifies the texture format. The default value is RGBA8.

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

ConstantDescription
Buffer.ClampToEdgeClamp coordinate to edge.
Buffer.MirroredRepeatRepeat the coordinate, but flip direction at the beginning and end.
Buffer.RepeatRepeat 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.

ConstantDescription
Buffer.NearestUse nearest-neighbor.
Buffer.LinearUse linear filtering.