Create Dx Texture

Started by
4 comments, last by iedoc 7 years, 8 months ago

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?

Advertisement

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

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/

I've used DirectXTex quite a bit. stb_image is also quite popular, since it's a single header file.

How to use stb_image for dx11? why DirectXTex differ from other Image loader?

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

This topic is closed to new replies.

Advertisement