directxtex_uwp 2024.1.1.1

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 2.8.6 or higher.

dotnet add package directxtex_uwp --version 2024.1.1.1                
NuGet\Install-Package directxtex_uwp -Version 2024.1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="directxtex_uwp" Version="2024.1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add directxtex_uwp --version 2024.1.1.1                
#r "nuget: directxtex_uwp, 2024.1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install directxtex_uwp as a Cake Addin
#addin nuget:?package=directxtex_uwp&version=2024.1.1.1

// Install directxtex_uwp as a Cake Tool
#tool nuget:?package=directxtex_uwp&version=2024.1.1.1                

DirectX Logo

DirectXTex texture processing library

http://go.microsoft.com/fwlink/?LinkId=248926

Copyright (c) Microsoft Corporation.

December 31, 2023

This package contains DirectXTex, a shared source library for reading and writing .DDS files, and performing various texture content processing operations including resizing, format conversion, mip-map generation, block compression for Direct3D runtime texture resources, and height-map to normal-map conversion. This library makes use of the Windows Image Component (WIC) APIs. It also includes .TGA and .HDR readers and writers since these image file formats are commonly used for texture content processing pipelines, but are not currently supported by a built-in WIC codec.

This code is designed to build with Visual Studio 2019 (16.11), Visual Studio 2022, clang for Windows v12 or later, or MinGW 12.2. Use of the Windows 10 May 2020 Update SDK (19041) or later is required for Visual Studio. It can also be built for Windows Subsystem for Linux using GCC 11 or later.

These components are designed to work without requiring any content from the legacy DirectX SDK. For details, see Where is the DirectX SDK?.

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.

  • Auxiliary\

    • Contains optional source files for the DirectXTex library, such as adapter loading functions using the OpenEXR 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.

  • build\

    • Contains YAML files for the build pipelines along with some miscellaneous build files and scripts.

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.

Release Notes

  • Starting with the July 2022 release, the bool forceSRGB parameter for the CreateTextureEx and CreateShaderResourceViewEx functions is now a CREATETEX_FLAGS typed enum bitmask flag parameter. This may have a breaking change impact to client code. Replace true with CREATETEX_FORCE_SRGB and false with CREATETEX_DEFAULT.

  • 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 Win10 classic desktop project include configurations for the ARM64 platform. Building these requires installing the ARM64 toolset.

  • When using clang/LLVM for the ARM64 platform, the Windows 11 SDK (22000) or later is required.

  • 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.

Support

For questions, consider using Stack Overflow with the directxtk tag, or the DirectX Discord Server in the dx12-developers or dx9-dx11-developers channel.

For bug reports and feature requests, please use GitHub issues for this project.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

Code of Conduct

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.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Credits

The DirectXTex library is the work of Chuck Walbourn, with contributions from Matt Lee, Xin Huang, Craig Peeper, and the numerous other Microsoft engineers who developed the D3DX utility library over the years.

Thanks to Paul Penson for his help with the implementation of MemoryStreamOnBlob.

Thanks to Andrew Farrier and Scott Matloff for their on-going help with code reviews.

Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.10.29.1 62 10/29/2024
2024.9.5.1 250 9/5/2024
2024.6.5.1 384 6/5/2024
2024.2.22.1 465 2/23/2024
2024.1.1.1 524 1/1/2024
2023.10.31.1 639 10/31/2023
2023.9.6.1 576 9/6/2023
2023.6.14.1 605 6/14/2023
2023.4.28.1 670 4/29/2023
2023.3.30.1 740 3/31/2023
2023.1.31.1 1,492 2/1/2023
2022.12.18.1 2,024 12/19/2022 2022.12.18.1 is deprecated because it has critical bugs; 2022.12.18.1 has at least one vulnerability with moderate severity.
2022.10.18.1 981 10/18/2022 2022.10.18.1 is deprecated because it has critical bugs; 2022.10.18.1 has at least one vulnerability with moderate severity.
2022.7.30.1 1,805 7/30/2022 2022.7.30.1 is deprecated because it has critical bugs; 2022.7.30.1 has at least one vulnerability with moderate severity.
2022.5.10.1 1,065 5/10/2022 2022.5.10.1 is deprecated because it has critical bugs; 2022.5.10.1 has at least one vulnerability with moderate severity.
2022.3.24.1 995 3/24/2022 2022.3.24.1 is deprecated because it has critical bugs; 2022.3.24.1 has at least one vulnerability with moderate severity.
2022.3.1.1 988 3/1/2022 2022.3.1.1 is deprecated because it has critical bugs; 2022.3.1.1 has at least one vulnerability with moderate severity.
2021.11.8.1 976 11/9/2021 2021.11.8.1 is deprecated because it has critical bugs; 2021.11.8.1 has at least one vulnerability with moderate severity.
2021.8.2.1 1,033 8/3/2021 2021.8.2.1 is deprecated because it has critical bugs; 2021.8.2.1 has at least one vulnerability with moderate severity.
2021.6.10.1 962 6/10/2021 2021.6.10.1 is deprecated because it has critical bugs; 2021.6.10.1 has at least one vulnerability with moderate severity.
2021.4.7.2 936 4/7/2021 2021.4.7.2 is deprecated because it has critical bugs; 2021.4.7.2 has at least one vulnerability with moderate severity.
2021.1.10.2 1,327 1/10/2021 2021.1.10.2 is deprecated because it has critical bugs; 2021.1.10.2 has at least one vulnerability with moderate severity.
2020.11.12.1 1,299 11/12/2020 2020.11.12.1 is deprecated because it has critical bugs; 2020.11.12.1 has at least one vulnerability with moderate severity.
2020.9.30.1 1,431 10/1/2020 2020.9.30.1 is deprecated because it has critical bugs; 2020.9.30.1 has at least one vulnerability with moderate severity.
2020.8.15.1 1,375 8/16/2020 2020.8.15.1 is deprecated because it has critical bugs; 2020.8.15.1 has at least one vulnerability with moderate severity.
2020.7.2.1 1,426 7/3/2020 2020.7.2.1 is deprecated because it has critical bugs; 2020.7.2.1 has at least one vulnerability with moderate severity.
2020.6.15.1 1,247 6/15/2020 2020.6.15.1 is deprecated because it has critical bugs; 2020.6.15.1 has at least one vulnerability with moderate severity.
2020.6.2.1 1,241 6/2/2020 2020.6.2.1 is deprecated because it has critical bugs; 2020.6.2.1 has at least one vulnerability with moderate severity.
2020.5.11.1 1,339 5/11/2020 2020.5.11.1 is deprecated because it has critical bugs; 2020.5.11.1 has at least one vulnerability with moderate severity.
2020.2.15.1 3,639 2/15/2020 2020.2.15.1 is deprecated because it has critical bugs; 2020.2.15.1 has at least one vulnerability with moderate severity.
2019.12.17.1 2,029 12/18/2019 2019.12.17.1 is deprecated because it has critical bugs; 2019.12.17.1 has at least one vulnerability with moderate severity.
2019.10.17.1 1,504 10/18/2019 2019.10.17.1 is deprecated because it has critical bugs; 2019.10.17.1 has at least one vulnerability with moderate severity.
2019.8.23.1 1,991 8/23/2019 2019.8.23.1 is deprecated because it has critical bugs; 2019.8.23.1 has at least one vulnerability with moderate severity.
2019.5.31.1 11,883 5/31/2019 2019.5.31.1 is deprecated because it has critical bugs; 2019.5.31.1 has at least one vulnerability with moderate severity.
2019.4.26.1 1,613 4/28/2019 2019.4.26.1 is deprecated because it has critical bugs; 2019.4.26.1 has at least one vulnerability with moderate severity.
2019.2.7.1 1,563 2/10/2019 2019.2.7.1 is deprecated because it has critical bugs; 2019.2.7.1 has at least one vulnerability with moderate severity.
2018.11.20.1 9,687 11/20/2018 2018.11.20.1 is deprecated because it has critical bugs; 2018.11.20.1 has at least one vulnerability with moderate severity.
2018.10.26.1 1,600 10/26/2018 2018.10.26.1 is deprecated because it has critical bugs; 2018.10.26.1 has at least one vulnerability with moderate severity.
2018.8.18.2 1,819 8/18/2018 2018.8.18.2 is deprecated because it has critical bugs; 2018.8.18.2 has at least one vulnerability with moderate severity.
2018.8.5.1 2,860 8/5/2018 2018.8.5.1 is deprecated because it has critical bugs; 2018.8.5.1 has at least one vulnerability with moderate severity.
2018.7.4.1 2,324 7/4/2018 2018.7.4.1 is deprecated because it has critical bugs; 2018.7.4.1 has at least one vulnerability with moderate severity.
2018.6.1.2 2,028 6/1/2018 2018.6.1.2 is deprecated because it has critical bugs; 2018.6.1.2 has at least one vulnerability with moderate severity.
2018.5.11.1 1,975 5/14/2018 2018.5.11.1 is deprecated because it has critical bugs; 2018.5.11.1 has at least one vulnerability with moderate severity.
2018.4.23.1 1,946 4/24/2018 2018.4.23.1 is deprecated because it has critical bugs; 2018.4.23.1 has at least one vulnerability with moderate severity.
2018.2.9.1 5,301 2/10/2018 2018.2.9.1 is deprecated because it has critical bugs; 2018.2.9.1 has at least one vulnerability with moderate severity.
2017.12.13.1 2,207 12/15/2017 2017.12.13.1 is deprecated because it has critical bugs; 2017.12.13.1 has at least one vulnerability with moderate severity.
2017.11.1.1 1,846 11/3/2017 2017.11.1.1 is deprecated because it has critical bugs; 2017.11.1.1 has at least one vulnerability with moderate severity.

Matches the December 31, 2023 release on GitHub.