ID3D10View::GetResource method (d3d10.h)
Get the resource that is accessed through this view.
void GetResource(
[out] ID3D10Resource **ppResource
);
[out] ppResource
Type: ID3D10Resource**
Address of a pointer to the resource that is accessed through this view. (See ID3D10Resource.)
None
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.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d10.h |
Library | D3D10.lib |