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
QQuick3DRenderPassTargetBlend Class Reference

#include <qquick3dshaderutils_p.h>

Collaboration diagram for QQuick3DRenderPassTargetBlend:

Public Types

enum  ColorMaskComponent : quint32 { R = 1 << 0 , G = 1 << 1 , B = 1 << 2 , A = 1 << 3 }
enum class  BlendFactor {
  Zero , One , SrcColor , OneMinusSrcColor ,
  DstColor , OneMinusDstColor , SrcAlpha , OneMinusSrcAlpha ,
  DstAlpha , OneMinusDstAlpha , ConstantColor , OneMinusConstantColor ,
  ConstantAlpha , OneMinusConstantAlpha , SrcAlphaSaturate , Src1Color ,
  OneMinusSrc1Color , Src1Alpha , OneMinusSrc1Alpha
}
enum class  BlendOperation {
  Add , Subtract , ReverseSubtract , Min ,
  Max
}

Public Member Functions

bool operator== (const QQuick3DRenderPassTargetBlend &other) const
 QQuick3DRenderPassTargetBlend ()=default
 QQuick3DRenderPassTargetBlend (QRhiGraphicsPipeline::TargetBlend targetBlend)
QRhiGraphicsPipeline::TargetBlend toRhiTargetBlend () const

Properties

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

Detailed Description

Definition at line 209 of file qquick3dshaderutils_p.h.

Member Enumeration Documentation

◆ BlendFactor

Enumerator
Zero 
One 
SrcColor 
OneMinusSrcColor 
DstColor 
OneMinusDstColor 
SrcAlpha 
OneMinusSrcAlpha 
DstAlpha 
OneMinusDstAlpha 
ConstantColor 
OneMinusConstantColor 
ConstantAlpha 
OneMinusConstantAlpha 
SrcAlphaSaturate 
Src1Color 
OneMinusSrc1Color 
Src1Alpha 
OneMinusSrc1Alpha 

Definition at line 232 of file qquick3dshaderutils_p.h.

◆ BlendOperation

Enumerator
Add 
Subtract 
ReverseSubtract 
Min 
Max 

Definition at line 255 of file qquick3dshaderutils_p.h.

◆ ColorMaskComponent

Enumerator

Definition at line 224 of file qquick3dshaderutils_p.h.

Constructor & Destructor Documentation

◆ QQuick3DRenderPassTargetBlend() [1/2]

QQuick3DRenderPassTargetBlend::QQuick3DRenderPassTargetBlend ( )
default

◆ QQuick3DRenderPassTargetBlend() [2/2]

QQuick3DRenderPassTargetBlend::QQuick3DRenderPassTargetBlend ( QRhiGraphicsPipeline::TargetBlend targetBlend)
inline

Definition at line 286 of file qquick3dshaderutils_p.h.

Member Function Documentation

◆ operator==()

bool QQuick3DRenderPassTargetBlend::operator== ( const QQuick3DRenderPassTargetBlend & other) const
inline

Definition at line 273 of file qquick3dshaderutils_p.h.

◆ toRhiTargetBlend()

QRhiGraphicsPipeline::TargetBlend QQuick3DRenderPassTargetBlend::toRhiTargetBlend ( ) const
inline

Definition at line 298 of file qquick3dshaderutils_p.h.

Property Documentation

◆ colorWrite

ColorMask QQuick3DRenderPassTargetBlend::colorWrite = ColorMask(0xF)

Definition at line 213 of file qquick3dshaderutils_p.h.

◆ dstAlpha

BlendFactor QQuick3DRenderPassTargetBlend::dstAlpha = BlendFactor::OneMinusSrcAlpha

Definition at line 218 of file qquick3dshaderutils_p.h.

◆ dstColor

BlendFactor QQuick3DRenderPassTargetBlend::dstColor = BlendFactor::OneMinusSrcAlpha

Definition at line 215 of file qquick3dshaderutils_p.h.

◆ enable

bool QQuick3DRenderPassTargetBlend::enable = false

Definition at line 212 of file qquick3dshaderutils_p.h.

◆ opAlpha

BlendOperation QQuick3DRenderPassTargetBlend::opAlpha = BlendOperation::Add

Definition at line 219 of file qquick3dshaderutils_p.h.

◆ opColor

BlendOperation QQuick3DRenderPassTargetBlend::opColor = BlendOperation::Add

Definition at line 216 of file qquick3dshaderutils_p.h.

◆ srcAlpha

BlendFactor QQuick3DRenderPassTargetBlend::srcAlpha = BlendFactor::One

Definition at line 217 of file qquick3dshaderutils_p.h.

◆ srcColor

BlendFactor QQuick3DRenderPassTargetBlend::srcColor = BlendFactor::One

Definition at line 214 of file qquick3dshaderutils_p.h.


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