Vireo  0.0
Vireo 3D Rendering Hardware Interface
ColorBlendDesc Struct Reference

Detailed Description

Graphic pipeline color blend attachment description

Manual page : Graphics Pipelines

Public Attributes

bool blendEnable {false}
 Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment’s color for that attachment is passed through unmodified. More...
 
BlendFactor srcColorBlendFactor {BlendFactor::SRC_ALPHA}
 Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). More...
 
BlendFactor dstColorBlendFactor {BlendFactor::ONE_MINUS_SRC_ALPHA}
 Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). More...
 
BlendOp colorBlendOp {BlendOp::ADD}
 Selects which blend operation is used to calculate the RGB values to write to the color attachment. More...
 
BlendFactor srcAlphaBlendFactor {BlendFactor::ONE}
 Selects which blend factor is used to determine the source factor Sa. More...
 
BlendFactor dstAlphaBlendFactor {BlendFactor::ZERO}
 Selects which blend factor is used to determine the destination factor Da. More...
 
BlendOp alphaBlendOp {BlendOp::ADD}
 Selects which blend operation is used to calculate the alpha values to write to the color attachment. More...
 
ColorWriteMask colorWriteMask {ColorWriteMask::ALL}
 Is a bitmask specifying which of the R, G, B, and/or A components are enabled for writing. More...
 

Member Data Documentation

BlendOp alphaBlendOp {BlendOp::ADD}

Selects which blend operation is used to calculate the alpha values to write to the color attachment.

bool blendEnable {false}

Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment’s color for that attachment is passed through unmodified.

BlendOp colorBlendOp {BlendOp::ADD}

Selects which blend operation is used to calculate the RGB values to write to the color attachment.

ColorWriteMask colorWriteMask {ColorWriteMask::ALL}

Is a bitmask specifying which of the R, G, B, and/or A components are enabled for writing.

BlendFactor dstAlphaBlendFactor {BlendFactor::ZERO}

Selects which blend factor is used to determine the destination factor Da.

BlendFactor dstColorBlendFactor {BlendFactor::ONE_MINUS_SRC_ALPHA}

Selects which blend factor is used to determine the destination factors (Dr,Dg,Db).

BlendFactor srcAlphaBlendFactor {BlendFactor::ONE}

Selects which blend factor is used to determine the source factor Sa.

BlendFactor srcColorBlendFactor {BlendFactor::SRC_ALPHA}

Selects which blend factor is used to determine the source factors (Sr,Sg,Sb).