ID3D11View::GetResource Method

Get the resource that is accessed through this view.

Syntax

public:
void GetResource(
         ID3D11Resource **ppResource
)  

Parameters

ppResource
Type: ID3D11Resource **

[out] Address of a pointer to the resource that is accessed through this view. (See ID3D11Resource.)

Return value

None.

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: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11View

ID3D11View Members