public void UpdateVaoAttributes() { vao.Clear(); var strideTotal = Attributes.Sum(x => x.Stride); for (int i = 0; i < Attributes.Count; i++) { var att = Attributes[i]; vao.AddAttribute( att.UniformName, att.ElementCount, att.Type, false, strideTotal, att.Offset); } vao.Initialize(); }