Trait three_d::renderer::material::FromCpuVoxelGrid
source · pub trait FromCpuVoxelGrid: Sized {
// Required method
fn from_cpu_voxel_grid(
context: &Context,
cpu_voxel_grid: &CpuVoxelGrid
) -> Self;
}
Expand description
Implement this for a Material that can be created from a CpuVoxelGrid.
Required Methods§
sourcefn from_cpu_voxel_grid(context: &Context, cpu_voxel_grid: &CpuVoxelGrid) -> Self
fn from_cpu_voxel_grid(context: &Context, cpu_voxel_grid: &CpuVoxelGrid) -> Self
Creates a new material that can be used for rendering from a CpuVoxelGrid.
Object Safety§
This trait is not object safe.