Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

[Question] BCn Textures - Detect If Existing .DDS File Has Alpha Channel? #44

Open
FiftyTifty opened this issue Aug 24, 2016 · 0 comments

Comments

@FiftyTifty
Copy link

Got me a wee problem. Bear with me 'ere, as I've only been doing C# for a couple days.

I've created a program that essentially runs texconv.exe through a folder and it's subdirectories, allowing the user to resize images of a specific resolution to another. It's intended for Fallout 4, so it operates on D3D 11 textures.

The problem, is that I've no way to check if a .dds file has an alpha channel or not. The header doesn't contain information about that (unlike the x & y res, as well as the mipmap level count), so I can't just retrieve a byte at a specific offset.

How would I use SharpDX to return whether or not a .dds has an alpha channel? It shouldn't be too intricate, seeing as how I just need to return a true/false boolean if the image has one or not.

Me source code for the program can be gotten 'ere. https://github.com/MajinCry/Fallout-4-Texture-Resizer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant