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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for