DarkBASIC Professional Help File

DX11 SET SOURCE BLEND ALPHA

Sets the source alpha blend mode for the given blend state and, optionally, render target.
Alpha blending is handled separatedly from colour blending so this can be set differently from the DX11 SET SOURCE BLEND counterpart.
The valid values for this function maps directly to the D3D11_BLEND enumeration described on MSDN, except the ones whose names end in _COLOR..

Syntax

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

Parameters

    blendState

> Dword
> The blend state to set the blend mode for.

    srcBlendAlpha

> Dword
> The blend mode to use for the alpha data currently generated by the pixel shader.

    [Optional] renderTarget

> Dword
> An ID of a render target to set this specific blend setting for. The valid range is [0..7]. Defaults to 0 which is the value used if multiple render targets are not used by this state.

Returns

This function does not return a value.

See also

BLENDSTATE Functions Menu
DX11 Function Categories