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 |
|
|---|---|
|
Library |
|
See also