DarkBASIC Professional Help File

DX11:BLENDSTATE

Blend states are used to describe how to blend pixels together during rendering; they are most commonly used to determine how to
do alpha blending for transparent textures but they can be used to blend colours based on other criteria as well.
Blend states used to be settable from within effect files before the effects framework was deprecated and as such they are used by associating
them with a shader technique.

    DX11 CREATE BLEND STATE : Return Dword = DX11 CREATE BLEND STATE(renderTargetCount)

    DX11 DELETE BLEND STATE : DX11 DELETE BLEND STATE blendState

    DX11 BLEND STATE EXISTS : Return Boolean = DX11 BLEND STATE EXISTS(blendstate)

    DX11 ENABLE BLEND STATE ALPHA COVERAGE : DX11 ENABLE BLEND STATE ALPHA COVERAGE blendState, enable

    DX11 SET BLEND STATE MULTIPLE RENDER TARGETS : DX11 SET BLEND STATE MULTIPLE RENDER TARGETS blendState, useMultipleRT

    DX11 ENABLE BLENDING : DX11 ENABLE BLENDING blendState, enable, [renderTarget]

    DX11 SET SOURCE BLEND : DX11 SET SOURCE BLEND blendState, srcBlend, [renderTarget]

    DX11 SET DESTINATION BLEND : DX11 SET DESTINATION BLEND blendState, destBlend, [renderTarget]

    DX11 SET SOURCE BLEND ALPHA : DX11 SET SOURCE BLEND ALPHA blendState, srcBlendAlpha, [renderTarget]

    DX11 SET DESTINATION BLEND ALPHA : DX11 SET DESTINATION BLEND ALPHA blendState, destBlendAlpha, [renderTarget]

    DX11 SET BLEND OPERATION : DX11 SET BLEND OPERATION blendState, op, [renderTarget]

    DX11 SET BLEND OPERATION ALPHA : DX11 SET BLEND OPERATION ALPHA blendState, op, [renderTarget]

    DX11 SET BLEND STATE COLOUR WRITE MASK : DX11 SET BLEND STATE COLOUR WRITE MASK blendState, colourWriteMask, [renderTarget]

    DX11 SET BLEND FACTOR : DX11 SET BLEND FACTOR blendState, redFactor, greenFactor, blueFactor, alphaFactor