Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 10
Reference
Direct3D
Resource
Interfaces
ID3D10View
 ID3D10View::GetResource
ID3D10View::GetResource

ID3D10View::GetResource

Get the resource that is accessed through this view.

void GetResource(
  ID3D10Resource **ppResource
);

Parameters

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

Return Values

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: Declared in D3D10.h.

See Also

ID3D10View Interface

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker