log when uploading ui buffers

This commit is contained in:
griffi-gh 2023-11-22 14:38:15 +01:00
parent 567fd1d6aa
commit ac497b0651

View file

@ -68,6 +68,7 @@ impl GliumUiRenderer {
} }
fn write_buffer_data(&mut self, vtx: &[Vertex], idx: &[u32]) { 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.ensure_buffer_size(vtx.len(), idx.len());
self.vertex_buffer.invalidate(); self.vertex_buffer.invalidate();
self.vertex_buffer.slice_mut(0..vtx.len()).unwrap().write(vtx); self.vertex_buffer.slice_mut(0..vtx.len()).unwrap().write(vtx);