Controls per-dispatch options on this compute context.
public:
void SetDispatchFlags(
UINT Flags
)
Flags
Type: UINT
[in] Flags controlling dispatch, as D3D11X_DISPATCH enumeration constants. Debug flags are only available in the DEBUG driver.
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.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.