Struct three_d::renderer::object::CpuVoxelGrid
source · pub struct CpuVoxelGrid {
pub name: String,
pub voxels: Texture3D,
pub size: Vector3<f32>,
}Expand description
Volume data consisting of voxel data inside a cube.
Fields§
§name: StringName.
voxels: Texture3DVoxel data, ie. small cubes in 3D (analogue to pixels in 2D) that contain 1-4 values.
size: Vector3<f32>The size of the cube that is spanned by the voxel data.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VoxelGrid
impl Send for VoxelGrid
impl Sync for VoxelGrid
impl Unpin for VoxelGrid
impl UnwindSafe for VoxelGrid
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