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.FlipRotateFlip and/or rotate image or set of images.
ResizeResize an image or set of images.
ConvertConvert an image or set of images from one pixel format to another.
ConvertToSinglePlaneConverts a planar image or set of images to a single-plane pixel format.
GenerateMipMapsGenerates mipmaps for an image or a set of images.
GenerateMipMaps3DGenerates mipmaps for a 3D volume texture from a set of images representing the slices.
PremultiplyAlphaThis converts an image assuming the original is not using premultiplied alpha into a premultiplied alpha version of the same image.
CompressCompresses an image or set of images to a BC format.
DecompressDecompresses a BC format to a non-BC format image.
ComputeNormalMapConverts a height-map to a normal-map.
CopyRectangleCopies a rectangle from a soure image to a destination image. Does not support block compressed formats.
ComputeMSEComputes 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