ID3D11ComputeContextX::SetDispatchFlags Method

Controls per-dispatch options on this compute context.

Syntax

public:
void SetDispatchFlags(
         UINT Flags
)  

Parameters

Flags
Type: UINT 

[in] Flags controlling dispatch, as D3D11X_DISPATCH enumeration constants. Debug flags are only available in the DEBUG driver.

Return value

None.

Remarks

The L1’s of CUs (including those doing other concurrent rendering or compute tasks) are normally invalidated on every Async Compute Dispatch call. SetDispatchFlags can be used to disable this automatic L1 invalidation, resulting in significantly improved performance of both the Asynchronous Compute dispatch and any concurrent rendering. It is the title’s responsibility in this case to use synchronization APIs such as ID3D11ComputeContextX::FlushGpuCachesBottomOfPipe, ID3D11ComputeContextX::FlushGpuCachesTopOfPipe, and ID3D11ComputeContextX::GpuSendPipelinedEvent to ensure proper coherency.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11ComputeContextX Interface

ID3D11ComputeContextX Members