allocate-byte-array ( buffer byte-array -- )
GPU-accelerated rendering > Buffer objects

Prev:allocate-buffer ( buffer size initial-data -- )
Next:grow-buffer ( buffer: buffer target-size: integer -- )


Vocabulary
gpu.buffers

Inputs and outputs
buffera buffer
byte-arraya byte-array


Word description
Discards any memory currently held by buffer and reallocates a new memory block large enough to store byte-array. The contents of byte-array are then copied into the buffer.

See also
allocate-buffer, buffer-size, update-buffer, read-buffer, copy-buffer, with-mapped-buffer

Definition