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(
  UINT                   NumViews,
  ID3D10RenderTargetView **ppRenderTargetViews,
  ID3D10DepthStencilView **ppDepthStencilView
);

Parameters

NumViews

Type: UINT

Number of render targets to retrieve.

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.

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

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

   
Target Platform Windows
Header d3d10.h
Library D3D10.lib

See Also

ID3D10Device Interface