Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D10View::GetResource method

Get the resource that is accessed through this view.

Syntax


void GetResource(
  [out] ID3D10Resource **ppResource
);

Parameters

ppResource [out]

Type: ID3D10Resource**

Address of a pointer to the resource that is accessed through this view. (See ID3D10Resource.)

Return value

Returns nothing.

Remarks

This function increments the reference count of the resource by one, so it is necessary to call Release on the returned pointer when the application is done with it. Destroying (or losing) the returned pointer before Release is called will result in a memory leak.

Requirements

Header

D3D10.h

Library

D3D10.lib

See also

ID3D10View Interface

 

 

Show:
© 2017 Microsoft