Function CommandBuffer.updateBuffer
Update buffer with the data passed as argument
Parameters
Name | Description |
---|---|
dst | the buffer to update. |
offset | Byte offset from where to update the buffer. Must be a multiple of 4. |
data | 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. |