1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Misc cleanup (#3935)

* Improve docstring
* Nicer welcome gif in README
* Misc cleanup
This commit is contained in:
Emil Ernerfeldt
2024-02-01 17:09:35 +01:00
committed by GitHub
parent 1db291721f
commit 67b796faee
12 changed files with 32 additions and 33 deletions

View File

@@ -814,7 +814,7 @@ impl Renderer {
};
if index_count > 0 {
crate::profile_scope!("indices");
crate::profile_scope!("indices", index_count.to_string());
self.index_buffer.slices.clear();
let required_index_buffer_size = (std::mem::size_of::<u32>() * index_count) as u64;
@@ -848,7 +848,7 @@ impl Renderer {
}
}
if vertex_count > 0 {
crate::profile_scope!("vertices");
crate::profile_scope!("vertices", vertex_count.to_string());
self.vertex_buffer.slices.clear();
let required_vertex_buffer_size = (std::mem::size_of::<Vertex>() * vertex_count) as u64;