DDS issue about ABGR

Started by
3 comments, last by Alundra 7 years ago

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

Advertisement

What's wrong with DXGI_FORMAT_R32G32B32A32_FLOAT?

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

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)

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

This topic is closed to new replies.

Advertisement