refactored Input layout descriptions when creating meshes. TODO: refactor materials too