This tutorial will demonstrate the use of deferred context (ID3D11DeviceContext) for multi-threaded rendering
After creating your D3D 11 device you create a deferred context which will be used for rendering in a separate thread. These are the steps that should be taken:
1: Use ID3D11Device::CreateDeferredContext method to create a deferred context
Example:
ID3D11DeviceContext *pD3DDefDevContext;
m_pD3DImmDevContext->CreateDeferredContext(0, &pD3DDefDevContext);
2: Now pD3DDefDevContext can be used in a separate thread to do rendering stuff.
After creating your D3D 11 device you create a deferred context which will be used for rendering in a separate thread. These are the steps that should be taken:
1: Use ID3D11Device::CreateDeferredContext method to create a deferred context
Example:
ID3D11DeviceContext *pD3DDefDevContext;
m_pD3DImmDevContext->CreateDeferredContext(0, &pD3DDefDevContext);
2: Now pD3DDefDevContext can be used in a separate thread to do rendering stuff.
No comments:
Post a Comment