Each entry is how many interdependent channels
are grouped into one texture in one pass, separate entries may be across
one or more textures/passes. See mapGroups.
OptionalchannelsMax: number = channelsMaxDefThe maximum number of channels
per texture. See mapGroups.
Optionalto: any[] = []An array to store the result; a new array if not
given.
to The indexes of the given values, reordered
to pack into the fewest buckets of channelsMax size or less; stored in
the given to array.
Minimise resource usage, order
valuesto pack into blocks ofchannelsMax; interpreted as indexes into the givenvalues.