pub struct GpuAoSoXyzBuffer { /* private fields */ }Expand description
GPU storage buffer containing contiguous interleaved XYZ positions.
Implementations§
Source§impl GpuAoSoXyzBuffer
impl GpuAoSoXyzBuffer
Sourcepub fn buffer(&self) -> &Buffer
pub fn buffer(&self) -> &Buffer
Returns the underlying wgpu storage buffer for downstream kernels.
Sourcepub const fn point_count(&self) -> usize
pub const fn point_count(&self) -> usize
Returns the number of interleaved XYZ points.
Sourcepub fn recycle(self, runtime: &WgpuRuntime)
pub fn recycle(self, runtime: &WgpuRuntime)
Returns this buffer to the runtime upload pool.
Auto Trait Implementations§
impl Freeze for GpuAoSoXyzBuffer
impl !RefUnwindSafe for GpuAoSoXyzBuffer
impl Send for GpuAoSoXyzBuffer
impl Sync for GpuAoSoXyzBuffer
impl Unpin for GpuAoSoXyzBuffer
impl UnsafeUnpin for GpuAoSoXyzBuffer
impl !UnwindSafe for GpuAoSoXyzBuffer
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