Application-defined resource creation callback function, called by DXUT after the Direct3D device is reset. Passes a pointer to the newly reset device.
HRESULT LPDXUTCALLBACKDEVICERESET( IDirect3DDevice9 * pd3dDevice, CONST D3DSURFACE_DESC * pBackBufferSurfaceDesc, void* pUserContext );
In general, if no error occurs, program the function to return S_OK. Program the function to return an HRESULT error code if the function fails. If DXUT receives a failure HRESULT code, it will shut down the application.
This callback function is the appropriate location for the application to create default pool resources, in D3DPOOL_DEFAULT memory, since these resources need to be reloaded whenever the device is reset. Resources created in this callback function should be deleted in the LPDXUTCALLBACKDEVICELOST callback function.
Header: Declared in Dxut.h.
LPDXUTCALLBACKDEVICERESET, LPDXUTCALLBACKDEVICELOST, LPDXUTCALLBACKDEVICELOST, Lost Devices