Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft