Blend factor is (f, f, f, 1); where f = min(Aₛ, 1 - Ad).
D3DBLEND_BOTHSRCALPHA
12
Obsolete. Starting with DirectX 6, you can achieve the same effect by setting the source and destination blend factors to D3DBLEND_SRCALPHA and D3DBLEND_INVSRCALPHA in separate calls.
D3DBLEND_BOTHINVSRCALPHA
13
Obsolete. Source blend factor is (1 - Aₛ, 1 - Aₛ, 1 - Aₛ, 1 - Aₛ), and destination blend factor is (Aₛ, Aₛ, Aₛ, Aₛ); the destination blend selection is overridden. This blend mode is supported only for the D3DRS_SRCBLEND render state.
D3DBLEND_BLENDFACTOR
14
Constant color blending factor used by the frame-buffer blender. This blend mode is supported only if D3DPBLENDCAPS_BLENDFACTOR is set in the SrcBlendCaps or DestBlendCaps members of D3DCAPS9.
D3DBLEND_INVBLENDFACTOR
15
Inverted constant color-blending factor used by the frame-buffer blender. This blend mode is supported only if the D3DPBLENDCAPS_BLENDFACTOR bit is set in the SrcBlendCaps or DestBlendCaps members of D3DCAPS9.
D3DBLEND_SRCCOLOR2
16
Blend factor is (PSOutColor[1]r, PSOutColor[1]g, PSOutColor[1]b, not used). See Render Target Blending. This flag is available in Direct3D 9Ex only.
D3DBLEND_INVSRCCOLOR2
17
Blend factor is (1 - PSOutColor[1]r, 1 - PSOutColor[1]g, 1 - PSOutColor[1]b, not used)). See Render Target Blending. This flag is available in Direct3D 9Ex only.
D3DBLEND_FORCE_DWORD
0x7FFFFFFF
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.
The result is the destination added to the source. Result = Source + Destination
D3DBLENDOP_SUBTRACT
2
The result is the destination subtracted from to the source. Result = Source - Destination
D3DBLENDOP_REVSUBTRACT
3
The result is the source subtracted from the destination. Result = Destination - Source
D3DBLENDOP_MIN
4
The result is the minimum of the source and destination. Result = MIN(Source, Destination)
D3DBLENDOP_MAX
5
The result is the maximum of the source and destination. Result = MAX(Source, Destination)
D3DBLENDOP_FORCE_DWORD
0x7FFFFFFF
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.
Accept the new pixel if its value is less than the value of the current pixel.
D3DCMP_EQUAL
3
Accept the new pixel if its value equals the value of the current pixel.
D3DCMP_LESSEQUAL
4
Accept the new pixel if its value is less than or equal to the value of the current pixel.
D3DCMP_GREATER
5
Accept the new pixel if its value is greater than the value of the current pixel.
D3DCMP_NOTEQUAL
6
Accept the new pixel if its value does not equal the value of the current pixel.
D3DCMP_GREATEREQUAL
7
Accept the new pixel if its value is greater than or equal to the value of the current pixel.
D3DCMP_ALWAYS
8
Always pass the test.
D3DCMP_FORCE_DWORD
0x7FFFFFFF
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.
Do not update the entry in the stencil buffer. This is the default value.
D3DSTENCILOP_ZERO
2
Set the stencil-buffer entry to 0.
D3DSTENCILOP_REPLACE
3
Replace the stencil-buffer entry with a reference value.
D3DSTENCILOP_INCRSAT
4
Increment the stencil-buffer entry, clamping to the maximum value.
D3DSTENCILOP_DECRSAT
5
Decrement the stencil-buffer entry, clamping to zero.
D3DSTENCILOP_INVERT
6
Invert the bits in the stencil-buffer entry.
D3DSTENCILOP_INCR
7
Increment the stencil-buffer entry, wrapping to zero if the new value exceeds the maximum value.
D3DSTENCILOP_DECR
8
Decrement the stencil-buffer entry, wrapping to the maximum value if the new value is less than zero.
D3DSTENCILOP_FORCE_DWORD
0x7FFFFFFF
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.