Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Release all references to device objects.
Syntax
HRESULT ReleaseAllDeviceObjects();
Return value
Type: HRESULT
Returns one of the following Direct3D 10 Return Codes.
Remarks
Each time you return a pointer to an interface (by calling ID3D10StateBlock::GetDevice), the internal reference count is incremented; when you are finished using a stateblock, call this method to release all references and avoid a memory leak.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | d3d10effect.h |