1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 20:10:05 +00:00

Updated Texassemble (markdown)

Chuck Walbourn 2016-09-12 21:56:10 -07:00
parent 58b773842e
commit 16879a9faa

@ -14,31 +14,30 @@ The file-name parameter indicates the file(s) to use to create the image.
The optional command-line switches are described in the following table.
# Optional Switches Description
* **-r**
* Input file names can contain wildcard characters (``?`` or ``*``). If this switch is used, subdirectories are also searched.
**-r**: Input file names can contain wildcard characters (``?`` or ``*``). If this switch is used, subdirectories are also searched.
* **-cube**: Creates a cubemap. Must have six images to form each of the six faces.
**-cube**: Creates a cubemap. Must have six images to form each of the six faces.
* **-volume**: Creates a volume map. Must have at least two images and the number of images determines the 'depth'.
**-volume**: Creates a volume map. Must have at least two images and the number of images determines the 'depth'.
* **-array**: Creates a 1D or 2D texture array. Must have at least two images. Note that loading the resulting DDS file requires feature level 10.0 or better hardware.
**-array**: Creates a 1D or 2D texture array. Must have at least two images. Note that loading the resulting DDS file requires feature level 10.0 or better hardware.
* **-cubearray**: Creates a cubemap array. Must have a multiple of six images. Note that loading the resulting DDS file requires feature level 10.1 or better hardware.
**-cubearray**: Creates a cubemap array. Must have a multiple of six images. Note that loading the resulting DDS file requires feature level 10.1 or better hardware.
* **-w _number_**: Width of the output texture in pixels.
* **-h _number_**: Height of the output texture in pixels. If no size is given, the size is taken from the first input image.
**-w _number_**: Width of the output texture in pixels.
**-h _number_**: Height of the output texture in pixels. If no size is given, the size is taken from the first input image.
* **-f _format_**: Output format. Specify the DXGI format without the ``DXGI_FORMAT_`` prefix (i.e. ``-f R10G10B10A2_UNORM``). If no format is given, the format of the first image file is used.
**-f _format_**: Output format. Specify the DXGI format without the ``DXGI_FORMAT_`` prefix (i.e. ``-f R10G10B10A2_UNORM``). If no format is given, the format of the first image file is used.
* **-if _filter_**: Image filter used for resizing the images. Use one of the following: ``POINT``, ``LINEAR``, ``CUBIC``, ``FANT``, ``BOX``, ``TRIANGLE``, ``POINT_DITHER``, ``LINEAR_DITHER``, ``CUBIC_DITHER``, ``FANT_DITHER``, ``BOX_DITHER``, ``TRIANGLE_DITHER``, ``POINT_DITHER_DIFFUSION``, ``LINEAR_DITHER_DIFFUSION``, ``CUBIC_DITHER_DIFFUSION``, ``FANT_DITHER_DIFFUSION``, ``BOX_DITHER_DIFFUSION``, or ``TRIANGLE_DITHER_DIFFUSION``. Filters with ``DITHER`` in their name indicate that the 4x4 ordered dither algorithm, while ``DITHER_DIFFUSION`` is error diffusion dithering.
**-if _filter_**: Image filter used for resizing the images. Use one of the following: ``POINT``, ``LINEAR``, ``CUBIC``, ``FANT``, ``BOX``, ``TRIANGLE``, ``POINT_DITHER``, ``LINEAR_DITHER``, ``CUBIC_DITHER``, ``FANT_DITHER``, ``BOX_DITHER``, ``TRIANGLE_DITHER``, ``POINT_DITHER_DIFFUSION``, ``LINEAR_DITHER_DIFFUSION``, ``CUBIC_DITHER_DIFFUSION``, ``FANT_DITHER_DIFFUSION``, ``BOX_DITHER_DIFFUSION``, or ``TRIANGLE_DITHER_DIFFUSION``. Filters with ``DITHER`` in their name indicate that the 4x4 ordered dither algorithm, while ``DITHER_DIFFUSION`` is error diffusion dithering.
* **-o _Output-filename_**: The default name is a .DDS file based on the first input image file.
**-o _Output-filename_**: The default name is a .DDS file based on the first input image file.
* **-sepalpha**: Separates alpha channel for resize.
**-sepalpha**: Separates alpha channel for resize.
* **-dx10**: Forces DDS file output to always use the "DX10" header extension, and allows the writing of alpha mode metadata information. The resulting file may not be compatible with the legacy D3DX10 or D3DX11 libraries.
**-dx10**: Forces DDS file output to always use the "DX10" header extension, and allows the writing of alpha mode metadata information. The resulting file may not be compatible with the legacy D3DX10 or D3DX11 libraries.
* **-nologo**: Suppress copyright message.
**-nologo**: Suppress copyright message.
# Examples