ModelProcessor.ProcessVertexChannel Method
Note
This method is available only when developing for Windows.
Processes geometry content vertex channels at the specified index.
Syntax
'Declaration
Protected Overridable Sub ProcessVertexChannel ( _
geometry As GeometryContent, _
vertexChannelIndex As Integer, _
context As ContentProcessorContext _
)
protected virtual void ProcessVertexChannel (
GeometryContent geometry,
int vertexChannelIndex,
ContentProcessorContext context
)
protected:
virtual void ProcessVertexChannel(
GeometryContent geometry,
int vertexChannelIndex,
ContentProcessorContext context
)
Parameters
- geometry
Type: GeometryContent
The geometry content to process. - vertexChannelIndex
Type: Int32
Index of the vertex channel to process. - context
Type: ContentProcessorContext
Context for the specified processor.
Remarks
This function will be called for each VertexChannel of Vertices found in the input mesh. Subclasses of ModelProcessor can override ProcessVertexChannel to control how vertex data is processed. The default implementation converts VertexElementUsage.Color channels to Color format, and replaces Weights channels with a pair of VertexElementUsage.BlendIndices and VertexElementUsage.BlendIndices channels (using Byte4 format for the VertexElementUsage.BlendWeight, Color for the VertexElementUsage.BlendWeight, and discarding excess weights if there are more than four per vertex).
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
ModelProcessor Class
ModelProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace
Platforms
Windows 7, Windows Vista, Windows XP