ID3D10Device::OMGetRenderTargets method (d3d10.h)

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

[in] NumViews

Type: UINT

Number of render targets to retrieve.

[out] ppRenderTargetViews

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.

[out] ppDepthStencilView

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

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 d3d10.h
Library D3D10.lib

See also

ID3D10Device Interface