Пример #1
0
 public AttributeBinding(
     AttributeMapping mapping,
     Attribute attribute,
     int stride
     )
 {
     AttributeMapping = mapping;
     Attribute        = attribute;
     Stride           = stride;
 }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }