D3DX10UnsetAllDeviceObjects function
Removes all resources from the device by setting their pointers to NULL. This should be called during shutdown of your application. It helps ensure that when one is releasing all of their resources that none of them are bound to the device.
Syntax
HRESULT D3DX10UnsetAllDeviceObjects(
_In_ ID3D10Device *pDevice
);
Parameters
-
pDevice [in]
-
Type: ID3D10Device*
Pointer to the device. See ID3D10Device Interface.
Return value
Type: HRESULT
The return value is one of the values listed in Direct3D 10 Return Codes.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also