LPDXUTCALLBACKDEVICEDESTROYED

Application-defined resource deletion callback function, to be called by DXUT immediately after the device is destroyed.

VOID LPDXUTCALLBACKDEVICEDESTROYED(
  void* pUserContext
);

Parameters

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 function should be used to delete resources created in the LPDXUTCALLBACKDEVICECREATED callback function. The deleted resources will generally include all resources created in D3DPOOL_MANAGED or D3DPOOL_SYSTEMMEM memory.

Requirements

Header: Declared in Dxut.h.

See Also

DXUTSetCallbackDeviceDestroyed, DXUTSetCallbackDeviceCreated, LPDXUTCALLBACKDEVICECREATED