pub struct VoxelScene { /* private fields */ }Expand description
A 3D automaton in a cube, marched as an emitting, absorbing volume, or as lit solid cells inside the glow of their own decay.
Implementations§
Source§impl VoxelScene
impl VoxelScene
Sourcepub fn new(
device: &Device,
surface_format: TextureFormat,
grid_cap: u32,
march_scale: GridScale,
march_cap: (u32, u32),
) -> Self
pub fn new( device: &Device, surface_format: TextureFormat, grid_cap: u32, march_scale: GridScale, march_cap: (u32, u32), ) -> Self
The CPU-side state, holding a preset’s grid to grid_cap and marching at
march_scale of the render target held to march_cap — the tier’s
three voxel values. GPU resources are built at the first configure.
Auto Trait Implementations§
impl Freeze for VoxelScene
impl !RefUnwindSafe for VoxelScene
impl Send for VoxelScene
impl Sync for VoxelScene
impl Unpin for VoxelScene
impl UnsafeUnpin for VoxelScene
impl !UnwindSafe for VoxelScene
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more