VectorConverter.GetConverter Generic Method

Note

This generic method is available only when developing for Windows.

Gets a Converter delegate that can convert one packed vector representation to another.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public static Converter<TInput, TOutput> GetConverter<TInput,TOutput> ()

Type Parameters

  • TInput
    Source type for the conversion.
  • TOutput
    Output type for the conversion.

Return Value

A Converter delegate that encodes or decodes TInput to TOutput.

Remarks

The input and output types must be either a value type that implements IPackedVector or one of Single, Vector2, Vector3, or Vector4.

See Also

Reference

VectorConverter Class
VectorConverter Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP