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 and outputs
buffera buffer
target-sizean integer


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