Function rokol::gfx::append_buffer[][src]

pub fn append_buffer(buf: Buffer, data: &[u8]) -> i32
Expand description

Appends vertices/indices to vertex/index buffer

Requires ResourceUsage::Dynamic or ResourceUsage::Stream. This can be called multiple times per frame.

Returns a byte offset to the start of the written data. The offset can be assgined to Bindings::vertex_buffer_offsets or Bindings::index_buffer_offset.