DarkBASIC Professional Help File

DX11 SET SOURCE BLEND

Sets the source blend mode for the given blend state and, optionally, render target.
The valid values for this function maps directly to the D3D11_BLEND enumeration described on MSDN.

Syntax

    DX11 SET SOURCE BLEND blendState, srcBlend, [renderTarget]

Parameters

    blendState

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

    srcBlend

> Dword
> The blend mode to use for the 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