Jump to content
  • Advertisement
Sign in to follow this  
Alundra

OpenGL DDS issue about ABGR

This topic is 529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,
Using the DDS for the cubemap with mipmap (for the radiance map for example) it's great but the DDS doesn't use RGBA for the float format.
Direct3D11 for example doesn't have a RGBA float format for example, I don't remember for OpenGL but then if you want to be cross you have an issue.
The only option is to swap the DDS data on the loading to be RGBA ?
Thanks

Share this post


Link to post
Share on other sites
Advertisement

Oh, apparently in the shader I did :

TextureCube<float> RadianceMap : register( t12 );

and I got black and white result but simply modified to :

TextureCube RadianceMap : register( t12 );

works, if I can have an explanation could be nice :o

Share this post


Link to post
Share on other sites

Oh, apparently in the shader I did :

TextureCube<float> RadianceMap : register( t12 );

and I got black and white result but simply modified to :

TextureCube RadianceMap : register( t12 );

works, if I can have an explanation could be nice :o

 

https://msdn.microsoft.com/en-us/library/windows/desktop/bb509700(v=vs.85).aspx

You declared the TextureCube as a single channel.
TextureCube<float4> would be RGBA float (which is what TextureCube defaults to)

Share this post


Link to post
Share on other sites

Thank you for the answer, easy to be confused, I was sure it was the type of data but not the full type.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!