Export (0) Print
Expand All

GraphicsDevice.GetRenderTargets Method

Gets a render target surface.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

public abstract RenderTargetBinding[] GetRenderTargets()

Return Value

Type: Microsoft.Xna.Framework.Graphics.RenderTargetBinding[]
An array of bound render targets.

ExceptionCondition
ArgumentOutOfRangeException

An invalid render target index was requested.

The GraphicsDevice can support multiple render targets.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft