static string GetName(ModelAttributeChannel channel, int index) { if (index > 0) { return(channel.ToString() + index); } return(channel.ToString()); }
public ModelAttribute(string name, GraphicsBuffer buffer, int offsetInBytes, Format format, int stride, ModelAttributeChannel channel, int index) { this.Channel = channel; this.Index = index; this.Name = name; this.Buffer = buffer; this.OffsetInBytes = offsetInBytes; this.Format = format; this.Stride = stride; }
static string GetName(ModelAttributeChannel channel, int index) { if(index > 0) return channel.ToString() + index; return channel.ToString(); }
public ModelAttribute(GraphicsBuffer buffer, int offsetInBytes, Format format, int stride, ModelAttributeChannel channel, int index) : this(GetName(channel, index), buffer, offsetInBytes, format, stride, channel, index) { }
public ChannelList(ModelAttributeChannel id, T defaultValue) { this.id = id; this.DefaultValue = defaultValue; }