Go to file
2020-09-12 03:50:11 +01:00
.nuget August 15, 2020 2020-08-15 16:20:52 -07:00
DDSTextureLoader Fixed PVS Studio V1037 warning 2020-06-13 14:02:40 -07:00
DDSView Suppress /analyze noise 2020-04-12 22:05:34 -07:00
DirectXMath Begin work for a standard port 2020-09-11 23:58:00 +01:00
DirectXTex Fixed template class; illegal interface class. compiles on Windows 2020-09-12 03:29:30 +01:00
PlatformSupport :( 2020-09-12 03:50:11 +01:00
ScreenGrab Fixed issue when trying to Capture 'small alignment' textures 2020-07-08 17:47:06 -07:00
Texassemble Added version info to tex tool logo output 2020-08-15 16:09:40 -07:00
Texconv Added version info to tex tool logo output 2020-08-15 16:09:40 -07:00
Texdiag Fixed template class; illegal interface class. compiles on Windows 2020-09-12 03:29:30 +01:00
WICTextureLoader Added WIC_LOADER_SRGB_DEFAULT flag to WICTextureLoader 2020-06-01 19:00:09 -07:00
.editorconfig Update editorconfig 2018-05-09 18:11:46 -07:00
.gitattributes Fix line endings for batch files 2016-08-26 12:00:34 -07:00
.gitignore remove 2020-09-12 02:21:46 +01:00
cmake_install.cmake Begin work for a standard port 2020-09-11 23:58:00 +01:00
CMakeCache.txt Begin work for a standard port 2020-09-11 23:58:00 +01:00
CMakeLists.txt temp knock out projects that have yet to be ported. main lib compiles 2020-09-12 02:01:33 +01:00
CMakeSettings.json Suppress some additional warnings for VS 2019 (16.7) Preview 2020-06-03 14:12:14 -07:00
DirectXTex_Desktop_2017_Win10.sln Add ARM64 desktop config to VS 2017 project 2020-01-23 11:55:36 -08:00
DirectXTex_Desktop_2017.sln Renamed desktop slns to use 'x86' instead of 'Win32' 2019-12-28 19:39:25 -08:00
DirectXTex_Desktop_2019_Win10.sln Renamed desktop slns to use 'x86' instead of 'Win32' 2019-12-28 19:39:25 -08:00
DirectXTex_Desktop_2019.sln Renamed desktop slns to use 'x86' instead of 'Win32' 2019-12-28 19:39:25 -08:00
DirectXTex_GDK_2017.sln Added GDK projects 2020-08-14 12:22:17 -07:00
DirectXTex_GDK_2019.sln Added GDK projects 2020-08-14 12:22:17 -07:00
DirectXTex_Windows10_2017.sln Renamed DirectXTex_Windows10.vcxproj to _Windows10_2017.vcxproj, added VS 2019 UWP projects 2019-06-27 18:02:23 -07:00
DirectXTex_Windows10_2019.sln Renamed DirectXTex_Windows10.vcxproj to _Windows10_2017.vcxproj, added VS 2019 UWP projects 2019-06-27 18:02:23 -07:00
DirectXTex_XboxOneXDK_2017.sln Add VS2017 editor config (#94) 2018-05-09 17:52:32 -07:00
grep Begin work for a standard port 2020-09-11 23:58:00 +01:00
HISTORY.md August 15, 2020 2020-08-15 16:20:52 -07:00
LICENSE Updated copyright year 2020-01-13 09:58:49 -08:00
Makefile temp knock out projects that have yet to be ported. main lib compiles 2020-09-12 02:01:33 +01:00
README.md remove 2020-09-12 02:21:46 +01:00
SECURITY.md Added Security notice 2020-06-30 17:01:09 -07:00

DirectX Logo

DirectXTex texture processing library for Linux

Directory Layout

  • DirectXTex\

    • This contains the DirectXTex library. This includes a full-featured DDS reader and writer including legacy format conversions, a TGA reader and writer, a HDR reader and writer, a WIC-based bitmap reader and writer (BMP, JPEG, PNG, TIFF, and HD Photo), and various texture processing functions. This is intended primarily for tool usage.

The majority of the header files here are intended for internal implementation of the library only (BC.h, BCDirectCompute.h, DDS.h, DirectXTexP.h, etc.). Only DirectXTex.h and DirectXTex.inl are meant as the 'public' header for the library.

  • Texconv\

    • This DirectXTex sample is an implementation of the texconv command-line texture utility from the DirectX SDK utilizing DirectXTex rather than D3DX.

      It supports the same arguments as the Texture Conversion Tool Extended (texconvex.exe) legacy DirectX SDK utility. The primary differences are the -10 and -11 arguments are not applicable and the filter names (POINT, LINEAR, CUBIC, FANT or BOX, TRIANGLE, *_DITHER, *_DITHER_DIFFUSION). This also includes support for the JPEG XR (HD Photo) bitmap format.

  • Texassemble\

    • This DirectXTex sample is a command-line utility for creating cubemaps, volume maps, or texture arrays from a set of individual input image files.
  • Texdiag\

    • This DirectXTex sample is a command-line utility for analyzing image contents, primarily for debugging purposes.
  • DDSView\

    • This DirectXTex sample is a simple Direct3D 11-based viewer for DDS files. For array textures or volume maps, the "<" and ">" keyboard keys will show different images contained in the DDS. The "1" through "0" keys can also be used to jump to a specific image index.
  • DDSTextureLoader\

    • This contains a streamlined version of the legacy DirectX SDK sample DDSWithoutD3DX11 texture loading code for a simple light-weight runtime DDS loader. There are versions for Direct3D 9, Direct3D 11, and Direct3D 12. This performs no runtime pixel data conversions. This is ideal for runtime usage, and supports the full complement of Direct3D texture resources (1D, 2D, volume maps, cubemaps, mipmap levels, texture arrays, BC formats, etc.).
  • ScreenGrab\

    • This contains texture writing modules for Direct3D 9, Direct3D 11, and Direct3D 12 primarily intended for creating screenshots. The images are written as a DDS or as an image file format using WIC.
  • WICTextureLoader\

    • This contains a Direct3D 9, Direct3D 11 and Direct3D 12 2D texture loader that uses WIC to load a bitmap (BMP, JPEG, PNG, HD Photo, or other WIC supported file container), resize if needed based on the current feature level (or by explicit parameter), format convert to a DXGI_FORMAT if required, and then create a 2D texture. Note this does not support 1D textures, volume textures, cubemaps, or texture arrays. DDSTextureLoader is recommended for fully "precooked" textures for maximum performance and image quality, but this loader can be useful for creating simple 2D texture from standard image files at runtime.

DDSTextureLoader11, ScreenGrab11, and WICTextureLoader11 are 'stand-alone' versions of the same modules provided in the DirectX Tool Kit for DX11

DDSTextureLoader12, ScreenGrab12, and WICTextureLoader12 are 'stand-alone' versions of the same modules provided in the DirectX Tool Kit for DX12.

Documentation

Documentation is available on the GitHub wiki.

Notices

All content and source code for this package are subject to the terms of the MIT License.

For the latest version of DirectXTex, bug reports, etc. please visit the project site on GitHub.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Release Notes

  • Starting with the June 2020 release, this library makes use of typed enum bitmask flags per the recommendation of the C++ Standard section 17.5.2.1.3 Bitmask types. This is consistent with Direct3D 12's use of the DEFINE_ENUM_FLAG_OPERATORS macro. This may have breaking change impacts to client code:

    • You cannot pass the 0 literal as your flags value. Instead you must make use of the appropriate default enum value: CP_FLAGS_NONE, DDS_FLAGS_NONE, WIC_FLAGS_NONE, TEX_FR_ROTATE0, TEX_FILTER_DEFAULT, TEX_FILTER_DEFAULT, TEX_FILTER_DEFAULT, CNMAP_DEFAULT, or CNMAP_DEFAULT.

    • Use the enum type instead of DWORD if building up flags values locally with bitmask operations. For example, DDS_FLAGS flags = DDS_FLAGS_NONE; if (...) flags |= DDS_FLAGS_EXPAND_LUMINANCE;

    • In cases where some of the flags overlap, you can use the | to combine the relevant types: TEX_FILTER_FLAGS filter modes combine with WIC_FLAGS, TEX_FILTER_FLAGS sRGB flags combine with TEX_PMALPHA_FLAGS or TEX_COMPRESS_FLAGS. No other bitwise operators are defined. For example, WIC_FLAGS wicFlags = WIC_FLAGS_NONE | TEX_FILTER_CUBIC;

  • Due to the underlying Windows BMP WIC codec, alpha channels are not supported for 16bpp or 32bpp BMP pixel format files. The Windows 8.x and Windows 10 version of the Windows BMP WIC codec does support 32bpp pixel formats with alpha when using the BITMAPV5HEADER file header. Note the updated WIC is available on Windows 7 SP1 with KB 2670838 installed.

  • While DXGI 1.0 and DXGI 1.1 include 5:6:5 (DXGI_FORMAT_B5G6R5_UNORM) and 5:5:5:1 (DXGI_FORMAT_B5G5R5A1_UNORM) pixel format enumerations, the DirectX 10.x and 11.0 Runtimes do not support these formats for use with Direct3D. The DirectX 11.1 runtime, DXGI 1.2, and the WDDM 1.2 driver model fully support 16bpp formats (5:6:5, 5:5:5:1, and 4:4:4:4).

  • WICTextureLoader cannot load .TGA or .HDR files unless the system has a 3rd party WIC codec installed. You must use the DirectXTex library for TGA/HDR file format support without relying on an add-on WIC codec.

  • Loading of 96bpp floating-point TIFF files results in a corrupted image prior to Windows 8. This fix is available on Windows 7 SP1 with KB 2670838 installed.

  • The UWP projects and the VS 2019 Win10 classic desktop project include configurations for the ARM64 platform. These require VS 2017 (15.9 update) or VS 2019 to build, with the ARM64 toolset installed.

  • The CompileShaders.cmd script must have Windows-style (CRLF) line-endings. If it is changed to Linux-style (LF) line-endings, it can fail to build all the required shaders.

Copyright (c) Microsoft Corporation. All rights reserved.