Buffer QML Type

Creates or references a color buffer to be used for a pass of an Effect. More...

Import Statement: import QtQuick3D .


Detailed Description

A Buffer can be used to create intermediate buffers to share data between render passes in an Effect.

Note: If the name property of the Buffer is empty, it will reference the default output texture of the render pass.

Property Documentation

bufferFlags : enumeration

Specifies the buffer allocation flags. The default is Buffer.None.

Buffer.NoneNo special behavior.
Buffer.SceneLifetimeThe buffer is allocated for the whole lifetime of the scene.

format : enumeration

Specifies the texture format. The default value is Buffer.RGBA8.


name : string

Specifies the name of the buffer.

Note: 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.

sizeMultiplier : real

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.

textureCoordOperation : enumeration

Specifies the behavior for texture coordinates when sampling outside the [0, 1] range. The default is Buffer.ClampToEdge.

Buffer.ClampToEdgeClamp coordinates to the edges.
Buffer.RepeatWrap the coordinates at the edges to tile the texture.
Buffer.MirroredRepeatWrap the coordinate at the edges, but mirror the texture when tiling it.

textureFilterOperation : enumeration

Specifies the texture filtering mode when sampling the contents of the Buffer. The default value is Buffer.Linear.

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

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