getVectorLength function

dynamic getVectorLength(
  1. dynamic count, [
  2. dynamic vectorLength = 4
])

Implementation

getVectorLength(count, [vectorLength = 4]) {
  var strideLength = getStrideLength(vectorLength);

  var floatLength = strideLength * count;

  return getFloatLength(floatLength);
}