pub struct GpuVoxelKeyBuffers { /* private fields */ }Expand description
GPU buffers for per-point positions and computed voxel keys.
Implementations§
Source§impl GpuVoxelKeyBuffers
impl GpuVoxelKeyBuffers
Sourcepub fn point_count(&self) -> u32
pub fn point_count(&self) -> u32
Returns the number of source points.
Sourcepub fn keys_buffer(&self) -> &Buffer
pub fn keys_buffer(&self) -> &Buffer
Returns the GPU buffer of computed voxel keys.
Sourcepub fn recycle(self, runtime: &WgpuRuntime)
pub fn recycle(self, runtime: &WgpuRuntime)
Returns position/key GPU buffers to the runtime upload pool.
Auto Trait Implementations§
impl Freeze for GpuVoxelKeyBuffers
impl !RefUnwindSafe for GpuVoxelKeyBuffers
impl Send for GpuVoxelKeyBuffers
impl Sync for GpuVoxelKeyBuffers
impl Unpin for GpuVoxelKeyBuffers
impl UnsafeUnpin for GpuVoxelKeyBuffers
impl !UnwindSafe for GpuVoxelKeyBuffers
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