|Microsoft DirectX 9.0|
Applications associate a blending stage with each texture in the set of current textures. Microsoft?Direct3D?evaluates each blending stage in order, beginning with the first texture in the set and ending with the eighth.
Direct3D applies the information from each texture in the set of current textures to the blending stage that is associated with it. Applications control what information from a texture stage is used by calling IDirect3DDevice9::SetTextureStageState. You can set separate operations for the color and alpha channels, and each operation uses two arguments. Specify color channel operations by using the D3DTSS_COLOROP stage state; specify alpha operations by using D3DTSS_ALPHAOP. Both stage states use values from the D3DTEXTUREOP enumerated type.
Texture blending arguments use the D3DTSS_COLORARG1, D3DTSS_COLORARG2, D3DTSS_ALPHARG1, and D3DTSS_ALPHARG2 members of the D3DTEXTURESTAGESTATETYPE enumerated type. The corresponding argument values are identified using D3DTA.
To determine the supported texture blending operations of a device, query the TextureCaps member of the D3DCAPS9 structure.