pub trait MaterialService {
// Required methods
fn register_material(
&mut self,
desc: MaterialDescriptor,
) -> Result<MaterialId, MaterialRegistrationError>;
fn unregister_material(&mut self, id: MaterialId) -> bool;
}Expand description
Renderer-owned registry for framework-controlled materials.
This is exposed as a runtime service so components can obtain MaterialId handles without
receiving backend handles or shader code.