Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ReleaseAllDeviceObjects
Collapse the table of content
Expand the table of content

ID3D10StateBlock::ReleaseAllDeviceObjects method

Release all references to device objects.

Syntax


HRESULT ReleaseAllDeviceObjects();

Parameters

This method has no parameters.

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

Header

D3D10Effect.h

See also

ID3D10StateBlock Interface

 

 

Community Additions

ADD
Show:
© 2015 Microsoft