function computeAttributesStride(attributes) {
  let stride = 0;
  for (let i = 0; i < attributes.length; i++) {
    const attr = attributes[i];
    stride += attr.size * getByteSizeFromType(attr.type);
  }
  return stride;
}
Compute a stride in bytes based on a list of attributes
@param {Array<AttributeDescription>} attributes Ordered list of attributes
@return {number} Stride, ie amount of values for each vertex in the vertex buffer