mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-21 22:38:41 -06:00
log when uploading ui buffers
This commit is contained in:
parent
567fd1d6aa
commit
ac497b0651
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue