1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-09 14:30:05 +00:00
4 WICFactory
Chuck Walbourn edited this page 2022-01-20 17:41:58 -08:00
DirectXTex

The majority of DirectXTex functions make use of a WIC factory object. This object is normally created on-demand the first time that GetWICFactory is called.

IWICImagingFactory* GetWICFactory(bool& iswic2);
void SetWICFactory(IWICImagingFactory* pWIC);

Remarks

The on-demand WIC factory object is normally not released on exit. To ensure it is released for a 'clean exit' you can use SetWICFactory(nullptr);.

The GetWICFactory function is thread-safe.