grow-buffer ( buffer: buffer target-size: integer -- )
GPU-accelerated rendering ยป Buffer objects

Prev:allocate-byte-array ( buffer byte-array -- )
Next:update-buffer ( buffer-ptr: buffer-ptr size: integer data -- )


Vocabulary
gpu.buffers

Inputs
buffera buffer
target-sizean integer


Outputs
None

Word description
If the buffer-size of the given buffer is less than target-size, reallocates the buffer to a size large enough to accommodate target-size bytes. If the buffer is reallocated, the original contents are lost.

Definition