Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DDSCAPS_COMPLEX when saving .dds files #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tuket
Copy link

@tuket tuket commented Jun 11, 2021

Hello,

I use RenderDoc to view .dds files. I was using gli to generate a .dds file that contains a mipmap chain of cubemaps, and I noticed that my file wasn't being detected as a cubemap in RenderDoc (eventhough the files generated by cfmt where recognized correctly).

So I researched how they do it in cmft: https://github.com/dariomanesku/cmft/blob/cad5f31bac66fd05987d667af62311c444df6d46/src/cmft/image.cpp#L1113

Apparently, having mipmaps or having cubemaps implies the flag DDSCAPS_COMPLEX. I would have never figured that out from the documentation.

With this small change RenderDoc seems to recognize the generated files correctly.

Apparently, having mipmaps implies DDSCAPS_COMPLEX.
This is a fix so the file opens correctly in RenderDoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant