Identifies the transparency behavior of a surface.
typedef enum DXGI_ALPHA_MODE
{
DXGI_ALPHA_MODE_UNSPECIFIED = 0,
DXGI_ALPHA_MODE_PREMULTIPLIED = 1,
DXGI_ALPHA_MODE_STRAIGHT = 2,
DXGI_ALPHA_MODE_IGNORE = 3,
DXGI_ALPHA_MODE_FORCE_DWORD = 0xffffffff
} DXGI_ALPHA_MODE;
| Constant | Description |
|---|---|
| DXGI_ALPHA_MODE_UNSPECIFIED | Indicates that the transparency behavior is not specified. |
| DXGI_ALPHA_MODE_PREMULTIPLIED | Indicates that the transparency behavior is premultiplied. Each color is first scaled by the alpha value. The alpha value itself is the same in both straight and premultiplied alpha. Typically, no color channel value is greater than the alpha channel value. If a color channel value in a premultiplied format is greater than the alpha channel, the standard source-over blending math results in an additive blend. |
| DXGI_ALPHA_MODE_STRAIGHT | Indicates that the transparency behavior is not premultiplied. The alpha channel indicates the transparency of the color. |
| DXGI_ALPHA_MODE_IGNORE | Indicates to ignore the transparency behavior. |
| DXGI_ALPHA_MODE_FORCE_DWORD | 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. |
For more information, see D2D1_ALPHA_MODE.
Header: Declared in d3d11_x.h or dxgi1_2.h.