Microsoft DirectX 8.1 (Visual Basic)

CONST_D3DPBLENDCAPSFLAGS

Defines source-blending capabilities.

Enum CONST_D3DPBLENDCAPSFLAGS
    D3DPBLENDCAPS_ZERO            =    1
    D3DPBLENDCAPS_ONE             =    2
    D3DPBLENDCAPS_SRCCOLOR        =    4
    D3DPBLENDCAPS_INVSRCCOLOR     =    8
    D3DPBLENDCAPS_SRCALPHA        =   16 (&H10)
    D3DPBLENDCAPS_INVSRCALPHA     =   32 (&H20)
    D3DPBLENDCAPS_DESTALPHA       =   64 (&H40)
    D3DPBLENDCAPS_INVDESTALPHA    =  128 (&H80)
    D3DPBLENDCAPS_DESTCOLOR       =  256 (&H100)
    D3DPBLENDCAPS_INVDESTCOLOR    =  512 (&H200)
    D3DPBLENDCAPS_SRCALPHASAT     = 1024 (&H400)
    D3DPBLENDCAPS_BOTHSRCALPHA    = 2048 (&H800)
    D3DPBLENDCAPS_BOTHINVSRCALPHA = 4096 (&H1000)
End Enum

Constants

D3DPBLENDCAPS_ZERO
Blend factor is (0, 0, 0, 0).
D3DPBLENDCAPS_ONE
Blend factor is (1, 1, 1, 1).
D3DPBLENDCAPS_SRCCOLOR
Blend factor is (Rs, Gs, Bs, As).
D3DPBLENDCAPS_INVSRCCOLOR
Blend factor is (1–Rd, 1–Gd, 1–Bd, 1–Ad).
D3DPBLENDCAPS_SRCALPHA
Blend factor is (As, As, As, As).
D3DPBLENDCAPS_INVSRCALPHA
Blend factor is (1–As, 1–As, 1–As, 1–As).
D3DPBLENDCAPS_DESTALPHA
Blend factor is (Ad, Ad, Ad, Ad).
D3DPBLENDCAPS_INVDESTALPHA
Blend factor is (1–Ad, 1–Ad, 1–Ad, 1–Ad).
D3DPBLENDCAPS_DESTCOLOR
Blend factor is (Rd, Gd, Bd, Ad).
D3DPBLENDCAPS_INVDESTCOLOR
Blend factor is (1–Rd, 1–Gd, 1–Bd, 1–Ad).
D3DPBLENDCAPS_SRCALPHASAT
Blend factor is (f, f, f, 1); f = min(As, 1-Ad).
D3DPBLENDCAPS_BOTHSRCALPHA
The driver supports the D3DBLEND_BOTHSRCALPHA blend mode. (This blend mode is obsolete. For more information, see CONST_D3DBLEND.)
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.

Remarks

The RGBA values of the source and destination are indicated by the subscripts s and d.

The values in this enumeration define the values for the SrcBlendCaps member of D3DCAPS8.

See Also

D3DCAPS8