[][src]Function gaclen::graphics::buffer::update

pub fn update<B, D>(device: &Device, buffer: B, data: D) where
    B: TypedBufferAccess<Content = D> + Send + Sync + 'static,
    D: Send + Sync + 'static, 

Write data to a buffer.

Builds a command buffer for writing the data to the buffer and executes it.

Panic

  • Panics if fails to create the command buffer.
  • Panics if fails to submit the command buffer.