pub struct GpuAoSoAttributeChunk { /* private fields */ }Expand description
GPU storage buffer for one interleaved attribute chunk and its layout.
Implementations§
Source§impl GpuAoSoAttributeChunk
impl GpuAoSoAttributeChunk
Sourcepub fn upload(
runtime: &WgpuRuntime,
label: &'static str,
chunk: &AoSoAAttributeChunk,
) -> SpatialResult<Self>
pub fn upload( runtime: &WgpuRuntime, label: &'static str, chunk: &AoSoAAttributeChunk, ) -> SpatialResult<Self>
Uploads a packed attribute chunk into pooled GPU storage.
Sourcepub const fn point_count(&self) -> usize
pub const fn point_count(&self) -> usize
Returns the number of packed points.
Sourcepub const fn layout(&self) -> AoSoAAttributeLayout
pub const fn layout(&self) -> AoSoAAttributeLayout
Returns the explicit stride and field-offset metadata.
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 GpuAoSoAttributeChunk
impl !RefUnwindSafe for GpuAoSoAttributeChunk
impl Send for GpuAoSoAttributeChunk
impl Sync for GpuAoSoAttributeChunk
impl Unpin for GpuAoSoAttributeChunk
impl UnsafeUnpin for GpuAoSoAttributeChunk
impl !UnwindSafe for GpuAoSoAttributeChunk
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