WIC_FLAGS Enumeration

WIC texture flags.

Syntax

enum WIC_FLAGS
{
    WIC_FLAGS_NONE = 0x0,
    WIC_FLAGS_FORCE_RGB = 0x1,
    WIC_FLAGS_NO_X2_BIAS = 0x2,
    WIC_FLAGS_NO_16BPP = 0x4,
    WIC_FLAGS_ALLOW_MONO = 0x8,
    WIC_FLAGS_ALL_FRAMES = 0x10,
    WIC_FLAGS_IGNORE_SRGB = 0x00020,
    WIC_FLAGS_DITHER = 0x10000,
    WIC_FLAGS_DITHER_DIFFUSION = 0x20000,
    WIC_FLAGS_FILTER_POINT = 0x100000,
    WIC_FLAGS_FILTER_LINEAR = 0x200000,
    WIC_FLAGS_FILTER_CUBIC = 0x300000,
    WIC_FLAGS_FILTER_FANT = 0x400000
};  

Constants

Constant Description
WIC_FLAGS_NONE Default.
WIC_FLAGS_FORCE_RGB By default we map many BGR formats directly to DXGI 1.1 formats. Use of this flag forces the use of DXGI 1.0 RGB formats instead for improved Direct3D 10.0 driver support.
WIC_FLAGS_NO_X2_BIAS By default GUID_WICPixelFormat32bppRGBA1010102XR is loaded as R10G10B10_XR_BIAS_A2_UNORM. Use of this flag will force it to convert to R10G10B10A2_UNORM instead.
WIC_FLAGS_NO_16BPP By default, 5:6:5 and 5:5:5:1 formats are returned as DXGI 1.2 formats. If this flag is used, the loader will expand these to R8G8B8A8 instead.
WIC_FLAGS_ALLOW_MONO By default, monochrome data is converted to greyscale. By using this flag, this data is loaded as R1_UNORM which is not supported for rendering by Direct3D.
WIC_FLAGS_ALL_FRAMES By default, only the first frame of a multi-frame file is loaded. If this flag is provided, all frames are loaded and resized to match the size of the first image to fit the DirectXTex requirements for a 2D array.
WIC_FLAGS_IGNORE_SRGB Ignores sRGB metadata if it is present in the file.
WIC_FLAGS_DITHER Use 4x4 dithering.
WIC_FLAGS_DITHER_DIFFUSION Use error-diffusion dithering.
WIC_FLAGS_FILTER_POINT Nearest-neighbor interpolation mode.
WIC_FLAGS_FILTER_LINEAR Linear interpolation mode.
WIC_FLAGS_FILTER_CUBIC Cubic interpolation mode.
WIC_FLAGS_FILTER_FANT Faint (box filtering) interpolation mode, for down-sampling.

Requirements

Header: Declared in directxtex.h.