Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


CreateWICTextureFromFileEx Formats


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Queequeg   Members   -  Reputation: 139

Like
0Likes
Like

Posted 24 January 2014 - 06:21 PM

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, 24 January 2014 - 06:22 PM.


Sponsor:

#2 MJP   Moderators   -  Reputation: 12205

Like
0Likes
Like

Posted 24 January 2014 - 07:18 PM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS