Skip to content
This repository was 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

Description

@FiftyTifty

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions