Resizing Render Target Direct2D after WM_SIZE

天大地大妈咪最大 提交于 2019-12-02 09:18:00

See Care_and_Feeding_of_the_Swap_Chain and Handling_Window_Resizing

Quote1: Naturally, the application's best route is to respond to WM_SIZE, and call IDXGISwapChain::ResizeBuffers, passing the size contained in the message's parameters.

Quote2: Before you call ResizeBuffers, you must release all outstanding references to the swap chain's buffers. The object that typically holds a reference to a swap chain's buffer is a render-target-view.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!