- Qt 6.11
- Qt Quick 3D
- QML Types
- renderTargetBlend
- Qt Quick 3D | Commercial or GPLv3

# renderTargetBlend QML Type

Defines blending parameters for a single color attachment of a render pass. More...

Import Statement: | `import QtQuick3D`
Since: | Qt 6.11

- List of all members, including inherited members

## Detailed Description

The renderTargetBlend type is used to specify blending parameters for a single color attachment of a RenderPass. An instance of renderTargetBlend can be assigned to one of the `PipelineStateOverride::targetBlendN` properties, where N is the index of the color attachment to configure.

If set to true, enables blending for the color attachment. If set to false, disables blending.

Sets the color channels that will be written to the color attachment.

Constant | Value
--- | ---
`renderTargetBlend.R`
`renderTargetBlend.G`
`renderTargetBlend.B`
`renderTargetBlend.A`

Sets the source color blend factor for the color attachment.

Constant | Value
--- | ---
`renderTargetBlend.Zero`
`renderTargetBlend.One`
`renderTargetBlend.SrcColor`
`renderTargetBlend.OneMinusSrcColor`
`renderTargetBlend.DstColor`
`renderTargetBlend.OneMinusDstColor`
`renderTargetBlend.SrcAlpha`
`renderTargetBlend.OneMinusSrcAlpha`
`renderTargetBlend.DstAlpha`
`renderTargetBlend.OneMinusDstAlpha`
`renderTargetBlend.ConstantColor`
`renderTargetBlend.OneMinusConstantColor`
`renderTargetBlend.ConstantAlpha`
`renderTargetBlend.OneMinusConstantAlpha`
`renderTargetBlend.SrcAlphaSaturate`
`renderTargetBlend.Src1Color`
`renderTargetBlend.OneMinusSrc1Color`
`renderTargetBlend.Src1Alpha`
`renderTargetBlend.OneMinusSrc1Alpha`

Sets the destination color blend factor for the color attachment.

Constant | Value
--- | ---
`renderTargetBlend.Zero`
`renderTargetBlend.One`
`renderTargetBlend.SrcColor`
`renderTargetBlend.OneMinusSrcColor`
`renderTargetBlend.DstColor`
`renderTargetBlend.OneMinusDstColor`
`renderTargetBlend.SrcAlpha`
`renderTargetBlend.OneMinusSrcAlpha`
`renderTargetBlend.DstAlpha`
`renderTargetBlend.OneMinusDstAlpha`
`renderTargetBlend.ConstantColor`
`renderTargetBlend.OneMinusConstantColor`
`renderTargetBlend.ConstantAlpha`
`renderTargetBlend.OneMinusConstantAlpha`
`renderTargetBlend.SrcAlphaSaturate`
`renderTargetBlend.Src1Color`
`renderTargetBlend.OneMinusSrc1Color`
`renderTargetBlend.Src1Alpha`
`renderTargetBlend.OneMinusSrc1Alpha`

Sets the color blend operation for the color attachment.

Constant | Value
--- | ---
`renderTargetBlend.Add`
`renderTargetBlend.Subtract`
`renderTargetBlend.ReverseSubtract`
`renderTargetBlend.Min`
`renderTargetBlend.Max`

Sets the source alpha blend factor for the color attachment.

Constant | Value
--- | ---
`renderTargetBlend.Zero`
`renderTargetBlend.One`
`renderTargetBlend.SrcColor`
`renderTargetBlend.OneMinusSrcColor`
`renderTargetBlend.DstColor`
`renderTargetBlend.OneMinusDstColor`
`renderTargetBlend.SrcAlpha`
`renderTargetBlend.OneMinusSrcAlpha`
`renderTargetBlend.DstAlpha`
`renderTargetBlend.OneMinusDstAlpha`
`renderTargetBlend.ConstantColor`
`renderTargetBlend.OneMinusConstantColor`
`renderTargetBlend.ConstantAlpha`
`renderTargetBlend.OneMinusConstantAlpha`
`renderTargetBlend.SrcAlphaSaturate`
`renderTargetBlend.Src1Color`
`renderTargetBlend.OneMinusSrc1Color`
`renderTargetBlend.Src1Alpha`
`renderTargetBlend.OneMinusSrc1Alpha`

Sets the destination alpha blend factor for the color attachment.

Constant | Value
--- | ---
`renderTargetBlend.Zero`
`renderTargetBlend.One`
`renderTargetBlend.SrcColor`
`renderTargetBlend.OneMinusSrcColor`
`renderTargetBlend.DstColor`
`renderTargetBlend.OneMinusDstColor`
`renderTargetBlend.SrcAlpha`
`renderTargetBlend.OneMinusSrcAlpha`
`renderTargetBlend.DstAlpha`
`renderTargetBlend.OneMinusDstAlpha`
`renderTargetBlend.ConstantColor`
`renderTargetBlend.OneMinusConstantColor`
`renderTargetBlend.ConstantAlpha`
`renderTargetBlend.OneMinusConstantAlpha`
`renderTargetBlend.SrcAlphaSaturate`
`renderTargetBlend.Src1Color`
`renderTargetBlend.OneMinusSrc1Color`
`renderTargetBlend.Src1Alpha`
`renderTargetBlend.OneMinusSrc1Alpha`

Sets the alpha blend operation for the color attachment.

Constant | Value
--- | ---
`renderTargetBlend.Add`
`renderTargetBlend.Subtract`
`renderTargetBlend.ReverseSubtract`
`renderTargetBlend.Min`
`renderTargetBlend.Max`