pub struct GpuVoxelSegments { /* private fields */ }Expand description
Voxel segment metadata kept on the GPU between sort/compact and reduce passes.
Implementations§
Source§impl GpuVoxelSegments
impl GpuVoxelSegments
Sourcepub fn cell_count(&self) -> u32
pub fn cell_count(&self) -> u32
Returns the number of occupied voxel cells.
Sourcepub fn point_count(&self) -> u32
pub fn point_count(&self) -> u32
Returns the source point count represented by these segments.
Sourcepub fn keys_buffer(&self) -> &Buffer
pub fn keys_buffer(&self) -> &Buffer
Returns the GPU buffer of unique voxel keys.
Sourcepub fn point_indices_buffer(&self) -> &Buffer
pub fn point_indices_buffer(&self) -> &Buffer
Returns the GPU buffer of sorted point indices grouped by cell.
Sourcepub fn cell_starts_buffer(&self) -> &Buffer
pub fn cell_starts_buffer(&self) -> &Buffer
Returns the GPU buffer of per-cell start offsets into point_indices.
Sourcepub fn to_voxel_segments(
&self,
runtime: &WgpuRuntime,
) -> SpatialResult<VoxelSegments>
pub fn to_voxel_segments( &self, runtime: &WgpuRuntime, ) -> SpatialResult<VoxelSegments>
Readbacks segment metadata into the CPU-side representation.
Auto Trait Implementations§
impl Freeze for GpuVoxelSegments
impl !RefUnwindSafe for GpuVoxelSegments
impl Send for GpuVoxelSegments
impl Sync for GpuVoxelSegments
impl Unpin for GpuVoxelSegments
impl UnsafeUnpin for GpuVoxelSegments
impl !UnwindSafe for GpuVoxelSegments
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