Tom Huntington
Tom Huntington

Reputation: 3435

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

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

Answers (0)

Related Questions