DXUTSetCallbackDeviceChanging

Sets the Direct3D device-changing callback function.

VOID DXUTSetCallbackDeviceChanging(LPDXUTCALLBACKMODIFYDEVICESETTINGSpCallbackModifyDeviceSettings,void*pUserContext);

Parameters

  • pCallbackModifyDeviceSettings
    [in] Pointer to a LPDXUTCALLBACKMODIFYDEVICESETTINGS callback function. If the callback function is supplied, it will be called before the Direct3D device is created. If NULL, DXUT will not notify the application about device changes.
  • pUserContext
    [in] Pointer to a user-defined value which is passed to the callback function. Typically used by an application to pass a pointer to a data structure that provides context information for the callback function. The default value is NULL

Return Values

No return value.

Remarks

This callback allows applications to reject device changes. Returning false from inside this callback will notify the framework to keep using the current device instead of changing to the new device. This callback can also be set using the DXUTCreateDevice function.

Requirements

Header: Declared in Dxut.h.

See Also

DXUTCreateDevice, LPDXUTCALLBACKMODIFYDEVICESETTINGS