Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QRhiGraphicsPipeline::TargetBlend Struct Reference

\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h More...

#include <qrhi.h>

Collaboration diagram for QRhiGraphicsPipeline::TargetBlend:

Public Attributes

ColorMask colorWrite = ColorMask(0xF)
bool enable = false
BlendFactor srcColor = One
BlendFactor dstColor = OneMinusSrcAlpha
BlendOp opColor = Add
BlendFactor srcAlpha = One
BlendFactor dstAlpha = OneMinusSrcAlpha
BlendOp opAlpha = Add

Detailed Description

\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h

Since
6.6

Describes the blend state for one color attachment.

Defaults to color write enabled, blending disabled. The blend values are set up for pre-multiplied alpha (One, OneMinusSrcAlpha, One, OneMinusSrcAlpha) by default. This means that to get the alpha blending mode Qt Quick uses, it is enough to set the enable flag to true while leaving other values at their defaults.

Note
This is a RHI API with limited compatibility guarantees, see \l QRhi for details.

Definition at line 1412 of file qrhi.h.

Member Data Documentation

◆ colorWrite

ColorMask QRhiGraphicsPipeline::TargetBlend::colorWrite = ColorMask(0xF)

Definition at line 1413 of file qrhi.h.

◆ dstAlpha

BlendFactor QRhiGraphicsPipeline::TargetBlend::dstAlpha = OneMinusSrcAlpha

Definition at line 1419 of file qrhi.h.

◆ dstColor

BlendFactor QRhiGraphicsPipeline::TargetBlend::dstColor = OneMinusSrcAlpha

Definition at line 1416 of file qrhi.h.

◆ enable

bool QRhiGraphicsPipeline::TargetBlend::enable = false

Definition at line 1414 of file qrhi.h.

◆ opAlpha

BlendOp QRhiGraphicsPipeline::TargetBlend::opAlpha = Add

Definition at line 1420 of file qrhi.h.

◆ opColor

BlendOp QRhiGraphicsPipeline::TargetBlend::opColor = Add

Definition at line 1417 of file qrhi.h.

◆ srcAlpha

BlendFactor QRhiGraphicsPipeline::TargetBlend::srcAlpha = One

Definition at line 1418 of file qrhi.h.

◆ srcColor

BlendFactor QRhiGraphicsPipeline::TargetBlend::srcColor = One

Definition at line 1415 of file qrhi.h.


The documentation for this struct was generated from the following file: