Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QRhiGraphicsPipeline::TargetBlend Struct Reference

\inmodule QtGui 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 QtGui

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

Member Data Documentation

◆ colorWrite

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

◆ dstAlpha

◆ dstColor

◆ enable

◆ opAlpha

BlendOp QRhiGraphicsPipeline::TargetBlend::opAlpha = Add

Definition at line 1347 of file qrhi.h.

Referenced by QRhiGles2::executeBindGraphicsPipeline().

◆ opColor

BlendOp QRhiGraphicsPipeline::TargetBlend::opColor = Add

Definition at line 1344 of file qrhi.h.

Referenced by QRhiGles2::executeBindGraphicsPipeline().

◆ srcAlpha

◆ srcColor


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