ID3D11DeviceContext::OMGetRenderTargets Method

Get pointers to the resources bound to the output-merger stage.

Syntax

public:
void OMGetRenderTargets(
         UINT NumViews,
         ID3D11RenderTargetView **ppRenderTargetViews,
         ID3D11DepthStencilView **ppDepthStencilView
)  

Parameters

NumViews
Type: UINT 

[in] Number of render targets to retrieve.

ppRenderTargetViews
Type: ID3D11RenderTargetView **

[out, optional] 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.

ppDepthStencilView
Type: ID3D11DepthStencilView **

[out, optional] 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

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

ID3D11DeviceContext

ID3D11DeviceContext Members