Textures can be converted between formats using the texconv.exe from the command line.
Path
Executable: | (SDK root)\Utilities\Texconv.exe |
Syntax
The command-line usage is:
texconv <Switch Options> <Filename> |
---|
Switch Options
The assembler switch options are:
Character | Description |
---|
-w | Width |
-h | Height |
-d | Depth |
-m | Miplevels |
-f | Format. Use any of the formats in D3DFORMAT without the D3DFMT_ prefix (except: D3DFMT_MULTI2_ARGB8). |
-if | Image filter. Use one of: NONE, POINT, LINEAR, TRIANGLE, BOX, NONE_DITHER, POINT_DITHER, LINEAR_DITHER, TRIANGLE_DITHER, BOX_DITHER |
-mf | Mip filter |
-c | Colorkey |
-srgb | sRGB {input, output} |
-px | Name prefix |
-sx | Name suffix |
-o | Output directory |
-ft | File type. Use one of: bmp, dds, jpg, hdr, pfm, png |
/nologo | Suppress copyright message. |