Reputation: 3435
The Direct2D API (i.e. EndDraw
) executes asynchronously on the gpu. So how do I tell (on the cpu) that the work (on the gpu) is finished?
I'm hanging the device by calling IMFSinkWriter::WriteSample
straight after I finish rendering ID2D1RenderTarget::EndDraw
.
P.S. I'm going to try the ID3D11Fence
api
Upvotes: 0
Views: 113