Returns array of memory mapped Vec4 instances using given backing array and stride settings: The cstride
is the step size between individual XYZ vector components. estride
is the step size between successive vectors. This arrangement allows for different storage approaches, incl. SOA, AOS, striped / interleaved etc.
backing array
num vectors
start index
component stride
element stride
Generated using TypeDoc
Merges given
src
iterable of Vec4s into single arraybuf
. Vectors will be arranged according to given component and element strides, starting atstart
index. It's the user's responsibility to ensure the target buffer has sufficient capacity to hold the input vectors. SeeVec4.mapBuffer
for the inverse operation. Returnsbuf
.