HasAlpha

Indicates whether the DXGI format includes an alpha channel.

Syntax

bool HasAlpha(
         DXGI_FORMAT fmt
)  

Parameters

fmt
Type: DXGI_FORMAT 

[in] One member of the DXGI_FORMAT enumeration.

Return value

Type: bool 

true if the DXGI format has alpha data; otherwise, false.

Remarks

BC1 formats return false, because they don’t support an alpha channel, although they do have a ‘transparency bit’ technique in the encoding.

Requirements

Header: Declared in directxtex.h.