Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Get pointers to the resources bound to the output-merger stage.
Syntax
void OMGetRenderTargets(
[in] UINT NumViews,
[out, optional] ID3D11RenderTargetView **ppRenderTargetViews,
[out, optional] ID3D11DepthStencilView **ppDepthStencilView
);
Parameters
[in] NumViews
Type: UINT
Number of render targets to retrieve.
[out, optional] ppRenderTargetViews
Type: ID3D11RenderTargetView**
Pointer to an array of ID3D11RenderTargetViews which represent render target views. Specify NULL for this parameter when retrieval of a render target is not needed.
[out, optional] ppDepthStencilView
Type: ID3D11DepthStencilView**
Pointer to a ID3D11DepthStencilView, which represents a depth-stencil view. Specify NULL for this parameter when retrieval of the depth-stencil view is not needed.
Return value
None
Remarks
Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |