ID3D11View::GetResource method (d3d11.h)
Get the resource that is accessed through this view.
Syntax
void GetResource(
[out] ID3D11Resource **ppResource
);
Parameters
[out] ppResource
Type: ID3D11Resource**
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for