DirectX SDK

CONST_D3DCAPSBLEND

The CONST_D3DCAPSBLEND enumeration defines the blending capabilities for a device. These values are combined in the lSrcBlendCaps and lDestBlendCaps members of the D3DPRIMCAPS type.

Enum CONST_D3DCAPSBLEND 
    D3DPBLENDCAPS_BOTHINVSRCALPHA =4096 
    D3DPBLENDCAPS_BOTHSRCALPHA =2048 
    D3DPBLENDCAPS_DESTALPHA =64 
    D3DPBLENDCAPS_DESTCOLOR =256 
    D3DPBLENDCAPS_INVDESTALPHA =128 
    D3DPBLENDCAPS_INVDESTCOLOR =512 
    D3DPBLENDCAPS_INVSRCALPHA =32 
    D3DPBLENDCAPS_INVSRCCOLOR =8 
    D3DPBLENDCAPS_ONE =2 
    D3DPBLENDCAPS_SRCALPHA =16 
    D3DPBLENDCAPS_SRCALPHASAT =1024 
    D3DPBLENDCAPS_SRCCOLOR =4 
    D3DPBLENDCAPS_ZERO =1 
End Enum 
D3DPBLENDCAPS_BOTHINVSRCALPHA
Source blend factor is (1-As, 1-As, 1-As, 1-As) and destination blend factor is (As, As, As, As); the destination blend selection is overridden.
D3DPBLENDCAPS_BOTHSRCALPHA
Source blend factor is (As, As, As, As) and destination blend factor is (1-As, 1-As, 1-As, 1-As); the destination blend selection is overridden.
D3DPBLENDCAPS_DESTALPHA
Blend factor is (Ad, Ad, Ad, Ad).
D3DPBLENDCAPS_DESTCOLOR
Blend factor is (Rd, Gd, Bd, Ad).
D3DPBLENDCAPS_INVDESTALPHA
Blend factor is (1-Ad, 1-Ad, 1-Ad, 1-Ad).
D3DPBLENDCAPS_INVDESTCOLOR
Blend factor is (1-Rd, 1-Gd, 1-Bd, 1-Ad).
D3DPBLENDCAPS_INVSRCALPHA
Blend factor is (1-As, 1-As, 1-As, 1-As).
D3DPBLENDCAPS_INVSRCCOLOR
Blend factor is (1-Rd, 1-Gd, 1-Bd, 1-Ad).
D3DPBLENDCAPS_ONE
Blend factor is (1, 1, 1, 1).
D3DPBLENDCAPS_SRCALPHA
Blend factor is (As, As, As, As).
D3DPBLENDCAPS_SRCALPHASAT
Blend factor is (f, f, f, 1); f = min(As, 1-Ad).
D3DPBLENDCAPS_SRCCOLOR
Blend factor is (Rs, Gs, Bs, As).
D3DPBLENDCAPS_ZERO
Blend factor is (0, 0, 0, 0).