How do I tell when Direct2D work has finished on the gpu

60 views Asked by At

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

0

There are 0 answers