Jump to content
  • Advertisement
Sign in to follow this  
poigwym

DX11 Create Dx Texture

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

D3DX11CreateShaderResourceViewFromFile can't work for  some picture format ,  so I want to use open source loading lib to replace the api.

Who can share some useful light weight open source texture loading lib? 

Share this post


Link to post
Share on other sites
Advertisement

What is the problem exactly? What additional features does your texture have so you cannot convert it to any other known format?

Share this post


Link to post
Share on other sites

Use Windows Imaging Component (WIC), very easy to use.

 

http://www.braynzarsoft.net/viewtutorial/q16390-directx-12-textures-from-file

 

Otherwise you could use the DirectX Toolkit (dxtk) "CreateWICTextureFromFile" function. You could see how they do it and do it yourself, or use the dxtk as part of your project.

 

https://directxtk.codeplex.com/

Edited by iedoc

Share this post


Link to post
Share on other sites

I've never used stb_image, but i definitely like the idea of only needing to include a single header. Can't get much more simple than that

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!