Functions for doing texture processing based on DirectXTex data typically loaded from a WIC or TGA image file and then written to a .DDS file.

The majority of these functions cannot operate on planar or palettized formats. For video formats, AYUV, Y410, Y416, YUY2, Y216, and Y416 are supported and all operations are performed in RGB colorspace.

FlipRotate
Flip and/or rotate image or set of images.

Resize
Resize an image or set of images.

Convert
Convert an image or set of images from one pixel format to another.

ConvertToSinglePlane
Converts a planar image or set of images to a single-plane pixel format.

GenerateMipMaps
Generates mipmaps for an image or a set of images.

GenerateMipMaps3D
Generates mipmaps for a 3D volume texture from a set of images representing the slices.

PremultiplyAlpha
This converts an image assuming the original is not using premultiplied alpha into a premultiplied alpha version of the same image.

Compress
Compresses an image or set of images to a BC format.

Decompress
Decompresses a BC format to a non-BC format image.

ComputeNormalMap
Converts a height-map to a normal-map.

CopyRectangle
Copies a rectangle from a soure image to a destination image. Does not support block compressed formats.

ComputeMSE
Computes the mean-squared error for each component based on two input images.

Examples

These are flexible functions for doing texture processing that can be used in many different ways. See the Texconv and Texassemble command-line utilities source code for some extensive examples of using them.

Related Flags

See Filter Flags

Last edited Jun 21, 2015 at 4:50 PM by walbourn, version 28