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

Force the DDS/DXT stream decompression. #3291

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

Conversation

CsabaStupak
Copy link
Contributor

The DDSCodec keeps the DXT format if the hardware supports it. However using this stack object it is possible to enforce the DXT decompression into RGB(A) format. This is useful e.g. when we have DDS texture without mipmaps and we need them. DirectX11 does not generate mipmaps if the texture is compressed (DirectX9 does it automatically).

Also added support to obtain the DDS stream (not only saving to file).

The DDSCodec keeps the DXT format if the hardware supports it. However using this stack object it is possible to enforce the DXT decompression into RGB(A) format. This is useful e.g. when we have DDS texture without mipmaps and we need them. DirectX11 does not generate mipmaps if the texture is compressed (DirectX9 does it automatically).

Also added support to obtain the DDS stream (not only saving to file).
The DDSCodec keeps the DXT format if the hardware supports it.
However this stack object can enforce the DXT decompression into RGB(A) format.
*/
class _OgreExport DDSDecodeEnforcer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are in a private header here which is not accessible for client code.

Please add a generic virtual setParameter method to Codec like this:

/// generic set method for parameters that connot be derived in @ref preAddToRenderState
virtual bool setParameter(const String& name, const String& value) { return false; }

and override it in DDSCodec. You can create a stack object based on this in your application code.

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.

3 participants