public Input ParseInput(XElement element)
{
int offset = Convert.ToInt32(element.Attribute("offset").Value);
string semantic = element.Attribute("semantic").Value;
if (semantic == "VERTEX")
{
semantic = "POSITION";
}
string sourceReference = element.Attribute("source").Value;
XElement source = new SourceFinder(mMeshElement).FindSource(sourceReference);
return new Input(semantic, offset, source);
}