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?
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?
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.
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