提问人:Tom Huntington 提问时间:8/24/2023 最后编辑:Tom Huntington 更新时间:8/24/2023 访问量:30
如何判断 Direct2D 工作何时在 GPU 上完成
How do I tell when Direct2D work has finished on the gpu
问:
Direct2D API(即 )在 GPU 上异步执行。那么我如何告诉(在 cpu 上)工作(在 gpu 上)已经完成呢?EndDraw
在完成呈现 ID2D1RenderTarget::EndDraw
后,我通过直接调用 IMFSinkWriter::WriteSample
来挂起设备。
P.S. 我要试试apiID3D11Fence
答: 暂无答案
评论
IDXGIDevice
ID3D11Device
CreateBitmapFromDxgiSurface
,这需要我正确获取基础 D3D11 对象The DXGI surface must have been created from the same Direct3D device that the Direct2D device context is associated with.
ID3D11DeviceContext4::Signal
似乎可以解决问题。EndDraw