Jump to content
  • Advertisement
Sign in to follow this  
schupf

[DX10] Loading a dds cubemap

This topic is 3814 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

Hello! As you know you can store a cubemap (the six textures) in a single .dds file. The only problem: how can you load such a dds cubemap file in DirectX10 to intialize a Texture2D (which contains 6 Textures)? Thanks for any help

Share this post


Link to post
Share on other sites
Advertisement
D3DX10_IMAGE_LOAD_INFO loadInfo;
loadInfo.MiscFlags = D3D10_RESOURCE_MISC_TEXTURECUBE;

ID3D10Texture2D* tex = 0;
D3DX10CreateTextureFromFile(Device, filename.,
&loadInfo, 0, (ID3D10Resource**)&tex, 0);


Then create shader resource view with D3D10_SRV_DIMENSION_TEXTURECUBE.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!