As part of my Gamefest 2011 presentation Modern Texture Content Pipelines (US / UK), I demonstrated the "DirectXTex" library which is a shared source implementation of DDS file I/O (including the "DX10" header extension), texture content processing operations (resize, format conversion, mip-map-generation), software block compression (BC1 - BC7), height-map to normal-map conversion, and a simple .TGA file reader and writer.

The attached package includes:

  • The DirectXTex library
  • Texconv, a sample using DirectXTex that is a command-line tool replacement for the DirectX SDK Texture Conversion Tool (Extended)
  • DDSView, a simple DDS viewer sample using DirectXTex
  • DDSTextureLoader, a light-weight DDS loader for DirectX 11 applications
  • WICTextureLoader, a WIC-based image loader for creating simple 2D textures with auto-gen mipmaps for DirectX 11 applications
  • A copy of XNAMath 2.04, which is required to build the DirectXTex library with VS 2010

See the ReadMe.txt file in the package for more details.

Note: There is another version of the Texconv sample with the DirectXTex library that uses DirectXMath with DXGI 1.2 support available on the Windows SDK Samples Code Gallery. It can be built using either VS 11 Beta or VS 2010 with the new Windows SDK. There is also a Metro style version of the DDSTextureLoader there as well. The Windows SDK Samples Code Gallery version of DirectXTex can be made to run on Windows Vista and WIndows 7 by adding _WIN32_WINNT=0x0600 to the Preprocessor Definitions.

All content and source code for this package except XNA Math are bound to the Microsoft Public License (Ms-PL). The XNA Math library is subject to the DirectX SDK (June 2010) End-User License Agreement.

 

Update: Refreshed the ZIP package as of April 20, 2012. See ReadMe.txt in package for change history and release notes.