VectorConverter.TryGetVectorType Method (SurfaceFormat, Type)
Note
This method is available only when developing for Windows.
Searches for a managed vector type that corresponds to a GPU texture format.
Syntax
'Declaration
Public Shared Function TryGetVectorType ( _
surfaceFormat As SurfaceFormat, _
out vectorType As Type _
) As Boolean
public static bool TryGetVectorType (
SurfaceFormat surfaceFormat,
out Type vectorType
)
public:
static bool TryGetVectorType(
SurfaceFormat surfaceFormat,
out Type vectorType
)
Parameters
- surfaceFormat
Type: SurfaceFormat
Surface format being compared. - vectorType
Type: Type
[OutAttribute] Corresponding managed vector type.
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