TEX_COMPRESS_FLAGS Enumeration

Texture compression flags.

Syntax

enum TEX_COMPRESS_FLAGS
{
    TEX_COMPRESS_DEFAULT = 0,
    TEX_COMPRESS_RGB_DITHER = 0x10000,
    TEX_COMPRESS_A_DITHER = 0x20000,
    TEX_COMPRESS_DITHER = 0x30000,
    TEX_COMPRESS_UNIFORM = 0x40000,
    TEX_COMPRESS_PARALLEL = 0x10000000
};  

Constants

Constant Description
TEX_COMPRESS_DEFAULT Default.
TEX_COMPRESS_RGB_DITHER Enables dithering RGB colors for BC1-3 compression.
TEX_COMPRESS_A_DITHER Enables dithering alpha channel for BC1-3 compression.
TEX_COMPRESS_DITHER Same as TEX_COMPRESS_RGB_DITHER and TEX_COMPRESS_A_DITHER.
TEX_COMPRESS_UNIFORM By default, BC1-3 uses a perceptual weighting. By using this flag, the perceptual weighting is disabled which can be useful when using the RGB channels for other data.
TEX_COMPRESS_PARALLEL This opts-in to multi-threaded compression if enabled.

Requirements

Header: Declared in directxtex.h.