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 1379 of file qrhi.h.

Member Data Documentation

◆ colorWrite

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

Definition at line 1380 of file qrhi.h.

◆ dstAlpha

BlendFactor QRhiGraphicsPipeline::TargetBlend::dstAlpha = OneMinusSrcAlpha

Definition at line 1386 of file qrhi.h.

◆ dstColor

BlendFactor QRhiGraphicsPipeline::TargetBlend::dstColor = OneMinusSrcAlpha

Definition at line 1383 of file qrhi.h.

◆ enable

bool QRhiGraphicsPipeline::TargetBlend::enable = false

Definition at line 1381 of file qrhi.h.

◆ opAlpha

BlendOp QRhiGraphicsPipeline::TargetBlend::opAlpha = Add

Definition at line 1387 of file qrhi.h.

◆ opColor

BlendOp QRhiGraphicsPipeline::TargetBlend::opColor = Add

Definition at line 1384 of file qrhi.h.

◆ srcAlpha

BlendFactor QRhiGraphicsPipeline::TargetBlend::srcAlpha = One

Definition at line 1385 of file qrhi.h.

◆ srcColor

BlendFactor QRhiGraphicsPipeline::TargetBlend::srcColor = One

Definition at line 1382 of file qrhi.h.


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