IddCxAdapterSetRenderAdapter function

An OS callback function that a driver can call to set the preferred render adapter used to render the swapchains for the specified adapter.

Syntax

void IddCxAdapterSetRenderAdapter(
  IDDCX_ADAPTER                          AdapterObject,
  const IDARG_IN_ADAPTERSETRENDERADAPTER *pInArgs
);

Parameters

AdapterObject

Adapter object of the adapter for which the rendering adapter preference is being set.

pInArgs

Input arguments for the function.

Return Value

This function returns VOID.

Remarks

The driver can call IddCxAdapterSetRenderAdapter at anytime to change the preferred render adapter. The driver can use Dxgi enumeration to find the required render adapter LUID. When this callback is called, the OS will attempt to re-create any existing swapchains onto the specified render adapter, and hence the user may see some visual glitches/artifacts. It is recommended that, if possible, the driver makes this call before adding any monitors.

Requirements

   
Minimum supported client Windows 10, version 1903
Header iddcx.h

See Also

IDARG_IN_ADAPTERSETRENDERADAPTER