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§

source

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.

Implementors§