log when uploading ui buffers

This commit is contained in:
griffi-gh 2023-11-22 14:38:15 +01:00
parent 82d1034f67
commit f42b1ea1bc

View file

@ -68,6 +68,7 @@ impl GliumUiRenderer {
}
fn write_buffer_data(&mut self, vtx: &[Vertex], idx: &[u32]) {
log::info!("uploading {} vertices and {} indices", vtx.len(), idx.len());
self.ensure_buffer_size(vtx.len(), idx.len());
self.vertex_buffer.invalidate();
self.vertex_buffer.slice_mut(0..vtx.len()).unwrap().write(vtx);