pub struct GpuIcpTrimmedMoments { /* private fields */ }Expand description
Owned 176-byte trimmed moments/status; no point or match readback is implicit.
Implementations§
Source§impl GpuIcpTrimmedMoments
impl GpuIcpTrimmedMoments
Sourcepub fn buffer(&self) -> &Buffer
pub fn buffer(&self) -> &Buffer
Device storage layout matches ordinary moments, except word 2 is the all-gated count. Word 1 is retained count. Terms 0..14 use retained pairs; term 15 uses every gated pair. Zero retained count zeros terms 0..14 and anchors but preserves all-gated fitness. Any invalid status zeros payload. Fraction one retains ordinary moments’ two reserved zeros.
Sourcepub const fn readback_bytes(&self) -> u64
pub const fn readback_bytes(&self) -> u64
Explicit fixed readback size, zero for empty source and 176 otherwise.
Sourcepub const fn normalization_scale(&self) -> f32
pub const fn normalization_scale(&self) -> f32
Physical coordinate scale for normalized centroid/covariance words.
Sourcepub const fn squared_distance_scale(&self) -> f32
pub const fn squared_distance_scale(&self) -> f32
Physical squared-distance scale for normalized all-gated residual sum.
Sourcepub fn download(
&self,
runtime: &WgpuRuntime,
) -> SpatialResult<GpuIcpTrimmedStatistics>
pub fn download( &self, runtime: &WgpuRuntime, ) -> SpatialResult<GpuIcpTrimmedStatistics>
Explicitly copies/waits/validates only the fixed-size moments and counts.
Auto Trait Implementations§
impl !RefUnwindSafe for GpuIcpTrimmedMoments
impl !UnwindSafe for GpuIcpTrimmedMoments
impl Freeze for GpuIcpTrimmedMoments
impl Send for GpuIcpTrimmedMoments
impl Sync for GpuIcpTrimmedMoments
impl Unpin for GpuIcpTrimmedMoments
impl UnsafeUnpin for GpuIcpTrimmedMoments
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