ID3D11DeviceContext::BeginCommandListExecution Method

Executes a series of calls to ExecuteCommandList without the overhead of saving state for each call.

Syntax

public:
void BeginCommandListExecution(
         UINT Flags
)  

Parameters

Flags
Type: UINT 

[in] This must be zero, which specifies to use the default functionality for saving and restoring state.

Return value

None.

Remarks

If you have a series of calls to ID3D11DeviceContext::ExecuteCommandList, to avoid the overhead of saving state between each call, wrap the calls between calls to BeginCommandListExecution and EndCommandListExecution.

Also, on each call of ExecuteCommandList, the RestoreContextState boolean parameter must be set to false.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11DeviceContext

ID3D11DeviceContext Members