1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-09-19 15:19:56 +00:00

Updated Texconv (markdown)

Chuck Walbourn 2018-02-22 10:36:41 -08:00
parent 46cb06ad27
commit 248f8f7d2c

@ -163,6 +163,10 @@ This loads the PNG image 'heightmap.png', converts it to a normal-map using lumi
This loads the HDR (Radiance RGBE) image `myimage.hdr`, performs a tone-mapping operation, and then writes the result to `myimage.bmp`.
texconv -pow2 -fl 9.3 -f BC3_UNORM -m 1 *.bmp
This creates a ``DDS`` file for each ``BMP`` file in the current directory that is sized to a power-of-2 respecting aspect ratio with a maximum size of 4096 for a given dimension. The results are compressed as ``DXGI_FORMAT_BC3_UNORM`` (a.k.a. DXT5) and have no mipmaps.
# Remarks
Support for [OpenEXR](http://www.openexr.com/) (``EXR``) can be added to the *texconv* utility. Uncomment ``#define USE_OPENEXR`` in the source, and add the DirectXTex auxiliary module to the project. See [[Adding OpenEXR]] for more details including building the OpenEXR library.