/// <summary> /// Get references to the render targets and the depth-stencil buffer that are available to the {{output-merger stage}}. /// </summary> /// <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. /// </remarks> /// <param name="numViews">Number of render targets to retrieve. </param> /// <param name="depthStencilViewRef">Pointer to a depth-stencil view (see <see cref="SharpDX.Direct3D10.DepthStencilView"/>) to be filled with the depth-stencil information from the device.</param> /// <returns>an array of render targets views (see <see cref="SharpDX.Direct3D10.RenderTargetView"/>) to be filled with the render targets from the device.</returns> /// <unmanaged>void OMGetRenderTargets([In] int NumViews,[Out, Buffer, Optional] ID3D10RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D10DepthStencilView** ppDepthStencilView)</unmanaged> public SharpDX.Direct3D10.RenderTargetView[] GetRenderTargets(int numViews, out SharpDX.Direct3D10.DepthStencilView depthStencilViewRef) { var renderTargets = new RenderTargetView[numViews]; GetRenderTargets(numViews, renderTargets, out depthStencilViewRef); return(renderTargets); }
/// <summary> /// Get references to the render targets that are available to the {{output-merger stage}}. /// </summary> /// <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. /// </remarks> /// <returns>a depth-stencil view (see <see cref="SharpDX.Direct3D10.DepthStencilView"/>) to be filled with the depth-stencil information from the device.</returns> /// <unmanaged>void OMGetRenderTargets([In] int NumViews,[Out, Buffer, Optional] ID3D10RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D10DepthStencilView** ppDepthStencilView)</unmanaged> public void GetRenderTargets(out SharpDX.Direct3D10.DepthStencilView depthStencilViewRef) { GetRenderTargets(0, new RenderTargetView[0], out depthStencilViewRef); }