Buffer QML Type

Defines a buffer to be used for a pass of a CustomMaterial or an Effect. 更多...

import 语句: import QtQuick3D 1.15

特性

详细描述

特性文档编制

bufferFlags : enumeration

Specifies the buffer allocation flags.

常量 描述
Buffer.None Value not set.
Buffer.SceneLifetime The buffer is allocated for the whole lifetime of the scene.

format : enumeration

Specifies the buffer format.

常量 值
Buffer.Unknown
Buffer.R8
Buffer.R16
Buffer.R16F
Buffer.R32I
Buffer.R32UI
Buffer.R32F
Buffer.RG8
Buffer.RGBA8
Buffer.RGB8
Buffer.SRGB8
Buffer.SRGB8A8
Buffer.RGB565
Buffer.RGBA16F
Buffer.RG16F
Buffer.RG32F
Buffer.RGB32F
Buffer.RGBA32F
Buffer.R11G11B10
Buffer.RGB9E5
Buffer.Depth16
Buffer.Depth24
Buffer.Depth32
Buffer.Depth24Stencil8

name : string

Specifies the name of the buffer

sizeMultiplier : real

Specifies the size multiplier of the buffer. 1.0 creates buffer with the same size while 0.5 creates buffer with width and height halved.

textureCoordOperation : enumeration

Specifies the texture coordinate operation for coordinates outside [0, 1] range.

常量 描述
Buffer.Unknown Value not set.
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 filter operation when a render pass is reading the buffer that is different size as the current output buffer.

常量 描述
Buffer.Unknown Value not set.
Buffer.Nearest Use nearest-neighbor.
Buffer.Linear Use linear filtering.