blendstate class
describes the blend operation (source/destination) per color component in the render operation.
constructors, destructors, conversion operators
Function documentation
core:: data:: material:: blendstate:: blendstate(bool enabled,
uint32_t binding,
vk::BlendFactor srcColorBlend,
vk::BlendFactor dstColorBlend,
vk::BlendOp colorBlendOp,
vk::BlendFactor srcAlphaBlend,
vk::BlendFactor dstAlphaBlend,
vk::BlendOp alphaBlendOp,
vk::ColorComponentFlags colorFlags = {vk::ColorComponentFlagBits::eR|vk::ColorComponentFlagBits::eG|vk::ColorComponentFlagBits::eB|vk::ColorComponentFlagBits::eA})
| Parameters | |
|---|---|
| enabled in | is the blendstate active (true) or not (false). |
| binding in | the binding location of the blend state. |
| srcColorBlend in | the operation to apply to the RGB components when loading. |
| dstColorBlend in | the operation to apply to the RGB components with our newly created color data. |
| colorBlendOp in | the blend operation to apply to the RGB components. |
| srcAlphaBlend in | the operation to apply to the A component when loading. |
| dstAlphaBlend in | the operation to apply to the A component with our newly created alpha data. |
| alphaBlendOp in | the blend operation to apply to the A component. |
| colorFlags in | the color component masking flags to use. |