MCPcopy Create free account
hub / github.com/PerroEngine/Perro / set_mesh_meta

Method set_mesh_meta

perro_source/render_stack/perro_graphics/src/resources.rs:256–263  ·  view source on GitHub ↗
(&mut self, id: MeshID, meta: ResourceMeta)

Source from the content-addressed store, hash-verified

254 #[inline]
255 fn set_mesh_source_slot(&mut self, index: u32, source: &str) {
256 if index == 0 {
257 return;
258 }
259 let slot = index as usize - 1;
260 if self.mesh_source_by_slot.len() <= slot {
261 self.mesh_source_by_slot.resize(slot + 1, None);
262 }
263 self.mesh_source_by_slot[slot] = Some(source.to_string());
264 }
265
266 #[inline]

Callers 2

create_meshMethod · 0.80
create_mesh_with_idMethod · 0.80

Calls 4

indexMethod · 0.80
lenMethod · 0.45
resizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected