Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

CreateWICTextureFromFileEx Formats

4: Adsense

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   

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.


#2 MJP   Moderators   

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