DarkBASIC Professional Help File

DX11 SET BLEND STATE COLOUR WRITE MASK

Sets a 8-bit mask detailing what colour channels the pixel shaders will be allowed to write to when using this blend state.
The valid values for the colour write mask is any combination of the D3D11_COLOR_WRITE_ENABLE_RED, D3D11_COLOR_WRITE_ENABLE_GREEN,
D3D11_COLOR_WRITE_ENABLE_BLUE and D3D11_COLOR_WRITE_ENABLE_ALPHA constants (the D3D11_COLOR_WRITE_ENABLE_ALL is the combination of all those flags).

Syntax

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

Parameters

    blendState

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

    colourWriteMask

> Byte
> The colour write mask that details what channels any pixel shader using the given blend state will be able to write to.

    [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