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.

ID3D10Device::OMGetRenderTargets method

Get pointers to the render targets and the depth-stencil buffer that are available to the output-merger stage.

Syntax


void OMGetRenderTargets(
  [in]  UINT                   NumViews,
  [out] ID3D10RenderTargetView **ppRenderTargetViews,
  [out] ID3D10DepthStencilView **ppDepthStencilView
);

Parameters

NumViews [in]

Type: UINT

Number of render targets to retrieve.

ppRenderTargetViews [out]

Type: ID3D10RenderTargetView**

Pointer to an array of render targets views (see ID3D10RenderTargetView) to be filled with the render targets from the device. Specify NULL for this parameter when retrieval of a render target is not needed.

ppDepthStencilView [out]

Type: ID3D10DepthStencilView**

Pointer to a depth-stencil view (see ID3D10DepthStencilView) to be filled with the depth-stencil information from the device. 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

D3D10.h

Library

D3D10.lib

See also

ID3D10Device Interface

 

 

Show:
© 2017 Microsoft