Share via


RenderTargetBinding Implicit Conversion (RenderTarget2D to RenderTargetBinding)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Implicitly converts a RenderTarget2D to a RenderTargetBinding for use in methods like SetRenderTargets.

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

Syntax

'Declaration
Public Shared Widening Operator CType ( _
    renderTarget As RenderTarget2D _
) As RenderTargetBinding
public static implicit operator RenderTargetBinding (
    RenderTarget2D renderTarget
)

Parameters

Return Value

Type: Microsoft.Xna.Framework.Graphics.RenderTargetBinding
A RenderTarget2D to a RenderTargetBinding for use in methods like SetRenderTargets.

Version Information

Silverlight

Supported in: 5

Platforms

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