Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11DeviceContext::OMGetRenderTargets method

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

NumViews [in]

Type: UINT

Number of render targets to retrieve.

ppRenderTargetViews [out, optional]

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.

ppDepthStencilView [out, optional]

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

Returns nothing.

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

D3D11.h

Library

D3D11.lib

See also

ID3D11DeviceContext

 

 

Show:
© 2016 Microsoft