コード例 #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);
        }