Microsoft DirectX 8.1 (C++)

D3DBLENDOP

Defines the supported blend operations.

typedef enum _D3DBLENDOP {
    D3DBLENDOP_ADD              = 1,
    D3DBLENDOP_SUBTRACT         = 2,
    D3DBLENDOP_REVSUBTRACT      = 3,
    D3DBLENDOP_MIN              = 4,
    D3DBLENDOP_MAX              = 5,

    D3DBLENDOP_FORCE_DWORD      = 0x7fffffff
} D3DBLENDOP;

Constants

D3DBLENDOP_ADD
The result is the destination added to the source.

Result = Source + Destination

D3DBLENDOP_SUBTRACT
The result is the destination subtracted from to the source.

Result = Source - Destination

D3DBLENDOP_REVSUBTRACT
The result is the source subtracted from the destination.

Result = Destination - Source

D3DBLENDOP_MIN
The result is the minimum of the source and destination.

Result = MIN(Source, Destination)

D3DBLENDOP_MAX
The result is the maximum of the source and destination.

Result = MAX(Source, Destination)

D3DBLENDOP_FORCE_DWORD
Forces this enumeration to compile to 32 bits in size. This value is not used.

Remarks

This enumerated type defines values used by the D3DRS_BLENDOP render state.

Requirements

  Header: Declared in D3d8types.h.

See Also

D3DCAPS8, D3DRENDERSTATETYPE