Partilhar via


VertexChannelNames.EncodeName Method (VertexElementUsage, Int32)

Note

This method is available only when developing for Windows.

Combines a vertex declaration usage and usage index into a string name.

Syntax

'Declaration
Public Shared Function EncodeName ( _
         vertexElementUsage As VertexElementUsage, _
         usageIndex As Integer _
) As String 
public static string EncodeName (
         VertexElementUsage vertexElementUsage,
         int usageIndex
)
public:
static String EncodeName(
         VertexElementUsage vertexElementUsage,
         int usageIndex
)

Parameters

  • vertexElementUsage
    Type: VertexElementUsage
    A vertex declaration.
  • usageIndex
    Type: Int32
    An index for the vertex declaration.

Return Value

Type: String
Resulting encoded name.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP