Advertisement Jump to content
Sign in to follow this  
Queequeg

CreateWICTextureFromFileEx Formats

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

I am having trouble figuring out what format the WICTextureLoader stores the image. Will a bmp always turn into the same format? If so what format? If not how can I specify the format or find out what format it is? 

 

It doesn't appear you can specify the DXGI_FORMAT like you can with D3D11_TEXTURE2D_DESC

 

I need to know the format in order to use the map function on the ID3D11Resource and properly read the subresource. 

 

Example call:

ID3D11Resource *pTex2D = NULL;
CreateWICTextureFromFileEx(d3d11DeviceInterface, d3d11DeviceContextInterface, L"test.bmp", 0, D3D11_USAGE_STAGING, 0, D3D11_CPU_ACCESS_READ, 0, 0, &pTex2D, NULL);

http://directxtk.codeplex.com/wikipage?title=WICTextureLoader&referringTitle=DirectXTK

Edited by Queequeg

Share this post


Link to post
Share on other sites
Advertisement

You have the source code, just take a look. I honestly don't know, so that's exactly what I would do.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!