0.6.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT Licenseddsfile on crates.io — Documentation
A library for reading and writing Microsoft DirectDraw Surface (.DDS) files. DDS is a container format for texture data, originally designed for DirectX but widely used across graphics APIs (OpenGL, Vulkan, Metal) and asset pipelines.
This library handles the container envelope — parsing headers, computing layout metadata (pitch, stride, mipmap sizes), and providing access to the raw texture data. It does not decode or encode pixel data.
Both the legacy D3DFormat (Direct3D 9) and the modern DxgiFormat (DirectX 10+) are supported, including files where the format is identified only by bitmask. The library handles:
Header10)The MSRV of this crate is 1.73. MSRV bumps are considered breaking changes and will be accompanied by a major version bump.
This crate was originally created and maintained by Mike Dilger at SiegeEngine/ddsfile and was also hosted at PistonDevelopers/ddsfile. Thank you to Mike and all past contributors for their work on this library.
Licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed under the MIT license without any additional terms or conditions.