public AttributeBinding(
     AttributeMapping mapping,
     Attribute attribute,
     int stride
     )
 {
     AttributeMapping = mapping;
     Attribute        = attribute;
     Stride           = stride;
 }
        public void Add(
            int slot,
            string name,
            VertexUsage usage,
            int index,
            int dimension
            )
        {
            var mapping = new AttributeMapping(slot, name, usage, index, dimension);

            mappings.Add(mapping);
        }
        public void Add(
            int slot,
            string name,
            VertexUsage srcUsage,
            int srcIndex,
            VertexUsage dstUsage,
            int dstIndex,
            int dimension
            )
        {
            var mapping = new AttributeMapping(slot, name, srcUsage, srcIndex, dstUsage, dstIndex, dimension);

            mappings.Add(mapping);
        }