Get pointers to the resources bound to the output-merger stage.
public:
void OMGetRenderTargetsAndUnorderedAccessViews(
UINT NumRTVs,
ID3D11RenderTargetView **ppRenderTargetViews,
ID3D11DepthStencilView **ppDepthStencilView,
UINT UAVStartSlot,
UINT NumUAVs,
ID3D11UnorderedAccessView **ppUnorderedAccessViews
)
NumRTVs
Type: UINT
[in] The number of render-target views to retrieve.
ppRenderTargetViews
Type: ID3D11RenderTargetView **
[out, optional] 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.
ppDepthStencilView
Type: ID3D11DepthStencilView **
[out, optional] 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.
UAVStartSlot
Type: UINT
[in] 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.
NumUAVs
Type: UINT
[in] Number of unordered-access views to return in ppUnorderedAccessViews. This number ranges from 0 to D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot.
ppUnorderedAccessViews
Type: ID3D11UnorderedAccessView **
[out, optional] 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.
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.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).