GraphicsDevice.GetRenderTargets Method

XNA Game Studio 4.0
Gets a render target surface.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

public RenderTargetBinding[] GetRenderTargets ()

Return Value

An array of bound render targets.

Exception typeCondition
ArgumentOutOfRangeExceptionAn invalid render target index was requested. On Xbox 360, there is only one render target available and renderTargetIndex must be zero.

The GraphicsDevice can support multiple render targets.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

ADD
Show: