• Advertisement
Sign in to follow this  

Loading texture from file

This topic is 1806 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.

 

I have a fairly simple question regarding loading texture mechanism in new Windows 8 Direct3D SDK.

 

So far I see that all CreateShaderResourceFromFile, CreateTexturedFromFile and other functions are deprecated and wiped out. Microsoft suggests to use DirectXTex third-party library for operations with textures. In previous SDK's it was very simple to just create DDS file and then load it as resource/texture/whatever. But now they are pushing us to use third-party library.

 

It would be okay for me, but as I'm learning DX myself, I want to load DDS files by using my own framework (kind of) so that I can actually understand how does loading data from file to D3D pipeline occure. I looked at Win8SDK DX tutorials and DirectXTex code, but they are complicated and demand lots of time to understand how things are going inside them.

 

Can you guys suggest some references to learn how can I load textures in D3D11 by myself without using third-party solutions?

 

Thanks.

Edited by GuardianX

Share this post


Link to post
Share on other sites
Advertisement

Well to be completely fair DirectXTex isn't exactly "third-party", since it's been developed by MS employees. But I do agree that it does suck that you have to download an additional library to get basic texture support.

Anyway, I would suggest looking a the DDS texture loader from DirectXTK. It's a much simpler loader than the one you'll find in DirectXTex, and it's specifically designed to be easy to drop in so that you can load textures at runtime.

Share this post


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

  • Advertisement