|Project Name||Stars||Downloads||Repos Using This||Packages Using This||Most Recent Commit||Total Releases||Latest Release||Open Issues||License||Language|
|Directxtex||1,533||18 days ago||35||mit||C++|
|DirectXTex texture processing library|
|Uvatlas||731||18 days ago||4||January 17, 2019||13||mit||C++|
|UVAtlas isochart texture atlas|
|Spout2||593||a month ago||bsd-2-clause||C++|
|A video frame sharing system for Microsoft Windows|
|Miniengineao||420||6 years ago||3||mit||C#|
|SSAO image effect from Microsoft MiniEngine, ported to Unity.|
|Microsoft Rocketbox||406||8 months ago||9||mit||Python|
|Microsoft Rocketbox is now available with MIT license! The library of 115 rigged avatars offers flexibility, enabling the easy use of animations across characters and the mixing and matching of texture elements.|
|Msfs2blend||98||a year ago||9||apache-2.0||Python|
|Import Microsoft Flight Simulator (FS2020) Models in Blender|
|Unadversarial||75||2 years ago||mit||Python|
|Official repository for our "Unadversarial Examples: Designing Objects for Robust Vision" paper|
|Planeconverter||31||2 years ago||1||bsd-3-clause||C#|
|Cinderdirectshow||5||11 years ago||C++|
|Video playback for libCinder using DirectShow|
|Sharedsurfacequeue||4||8 years ago||Pascal|
|Delphi and FPC Version for the SharedSurfaceQueue Lib by Microsoft|
Copyright (c) Microsoft Corporation.
April 28, 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
.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?.
The majority of the header files here are intended for internal implementation of the library only (
DirectXTexP.h, etc.). Only
DirectXTex.inlare meant as the 'public' header for the library.
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
-11 arguments are not applicable and the filter names (
*_DITHER_DIFFUSION). This also includes support for the JPEG XR (HD Photo) bitmap format.
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 is available on the GitHub wiki.
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.
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
Starting with the June 2020 release, this library makes use of typed enum bitmask flags per the recommendation of the C++ Standard section 18.104.22.168.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:
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
TEX_FILTER_FLAGS sRGB flags combine with
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
.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.
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.
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.
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.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
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.
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
Thanks to Andrew Farrier and Scott Matloff for their on-going help with code reviews.