VectorConverter.TryGetSurfaceFormat Method

Gets the GPU texture format that corresponds to a managed vector type.

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

Syntax

public static bool TryGetSurfaceFormat (
         Type vectorType,
         out SurfaceFormat surfaceFormat
)

Parameters

Return Value

true if a match is found; false otherwise.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista