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

Method has_material

perro_source/render_stack/perro_graphics/src/resources.rs:786–788  ·  view source on GitHub ↗
(&self, id: MaterialID)

Source from the content-addressed store, hash-verified

784 #[inline]
785 fn remove_decoded_texture_state(&mut self, id: TextureID) {
786 if let Some(old) = self.decoded_texture_by_id.remove(&id) {
787 self.decoded_texture_bytes = self.decoded_texture_bytes.saturating_sub(old.rgba.len());
788 }
789 self.decoded_texture_pinned.remove(&id);
790 self.decoded_texture_stamp.remove(&id);
791 self.texture_dims_revision = self.texture_dims_revision.wrapping_add(1);

Callers 6

material_meta_mutMethod · 0.80
create_materialMethod · 0.80
set_material_dataMethod · 0.80
draw_readinessFunction · 0.80

Calls 2

indexMethod · 0.80
contains_partsMethod · 0.45

Tested by

no test coverage detected