microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++

Home Page:https://walbourn.github.io/directxtk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SaveDDSTextureToFile doesn't return

YueLu0116 opened this issue · comments

Today I used SaveDDSTextureToFile to dump frames every 1min for debugging, but after saving 2~3 images, this function didn't return and the thread was blocked by it. Does anyone has experience on how to solving this issue? I checked the logs, but no information was printed by it.

As with all uses of ID3D11DeviceContext this function is not thread-safe. You need to make sure you are not continuing to use the immediate context while this function is running.