ID3D11DeviceContext::OMGetRenderTargetsAndUnorderedAccessViews method (d3d11.h)
Get pointers to the resources bound to the output-merger stage.
Syntax
void OMGetRenderTargetsAndUnorderedAccessViews(
[in] UINT NumRTVs,
[out, optional] ID3D11RenderTargetView **ppRenderTargetViews,
[out, optional] ID3D11DepthStencilView **ppDepthStencilView,
[in] UINT UAVStartSlot,
[in] UINT NumUAVs,
[out, optional] ID3D11UnorderedAccessView **ppUnorderedAccessViews
);
Parameters
[in] NumRTVs
Type: UINT
The number of render-target views to retrieve.
[out, optional] ppRenderTargetViews
Type: ID3D11RenderTargetView**
Pointer to an array of ID3D11RenderTargetViews, which represent render-target views. Specify NULL for this parameter when retrieval of render-target views is not required.
[out, optional] ppDepthStencilView
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 required.
[in] UAVStartSlot
Type: UINT
Index into a zero-based array to begin retrieving unordered-access views (ranges from 0 to D3D11_PS_CS_UAV_REGISTER_COUNT - 1). For pixel shaders UAVStartSlot should be equal to the number of render-target views that are bound.
[in] NumUAVs
Type: UINT
Number of unordered-access views to return in ppUnorderedAccessViews. This number ranges from 0 to D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot.
[out, optional] ppUnorderedAccessViews
Type: ID3D11UnorderedAccessView**
Pointer to an array of ID3D11UnorderedAccessViews, which represent unordered-access views that are retrieved. Specify NULL for this parameter when retrieval of unordered-access views is not required.
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.
Windows Phone 8: This API is supported.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |