gboisse / gfx

A minimalist and easy to use graphics API.
MIT License
498 stars 35 forks source link

Add dds texture loading support. #113

Closed maoliver-amd closed 6 months ago

maoliver-amd commented 6 months ago

Added support for loading dds texture files. I couldnt find a decent thrid party lib that didnt have some sort of issues so I ended up writing some dds code from scratch. Ive tested it with all the dds files that I have and it works correctly (checked with different channel counts, compression and mips) I also extended the GLTF loader so that it can pick up dds files wrapped in the "MSFT_texture_dds" official extension (although we can load dds files that are added without using th official extension aswell)