public ProgramAttribute MatchAttribute(ModelProgram program)
{
switch (Usage) {
case ModelVertexUsage.BlendIndices: return program.BoneIndices;
case ModelVertexUsage.BlendWeight: return program.BoneWeights;
case ModelVertexUsage.Normal: return program.Normal;
case ModelVertexUsage.Position: return program.Position;
case ModelVertexUsage.TextureCoordinate: return program.Texel;
default: return null;
}
}