pub trait FromCpuMaterial: Sized {
// Required method
fn from_cpu_material(context: &Context, cpu_material: &CpuMaterial) -> Self;
}Expand description
Implement this for a Material that can be created from a CpuMaterial.
Required Methods§
Sourcefn from_cpu_material(context: &Context, cpu_material: &CpuMaterial) -> Self
fn from_cpu_material(context: &Context, cpu_material: &CpuMaterial) -> Self
Creates a new material that can be used for rendering from a CpuMaterial.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.