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