FromCpuVoxelGrid

Trait 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§

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.

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.

Implementors§