VectorConverter.TryGetSurfaceFormat Method
Note
This method is available only when developing for Windows.
Gets the GPU texture format that corresponds to a managed vector type.
Syntax
'Declaration
Public Shared Function TryGetSurfaceFormat ( _
vectorType As Type, _
out surfaceFormat As SurfaceFormat _
) As Boolean
public static bool TryGetSurfaceFormat (
Type vectorType,
out SurfaceFormat surfaceFormat
)
public:
static bool TryGetSurfaceFormat(
Type vectorType,
out SurfaceFormat surfaceFormat
)
Parameters
vectorType
Type: TypeCan be one of the following:
surfaceFormat
Type: SurfaceFormat
[OutAttribute] Surface format being compared.
Return Value
Type: Boolean
true if a match is found; false otherwise.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
VectorConverter Class
VectorConverter Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP