CommandBuffer.updateBuffer

Update buffer with the data passed as argument

interface CommandBuffer
void
updateBuffer
(,
in size_t offset
,
in uint[] data
)

Parameters

dst Buffer

the buffer to update.

offset size_t

Byte offset from where to update the buffer. Must be a multiple of 4.

data uint[]

The data to copy into the buffer. The data is duplicated into the command buffer, so it is legal to pass a slice to local on-stack data, or to let GC collect the data right after the call. Can only be used outside of a render pass.

Meta