Followers 0

# CreateWICTextureFromFileEx Formats

## 1 post in this topic

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);

Edited by Queequeg
0

##### Share on other sites

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

0

## Create an account

Register a new account