pub struct GpuIcpMoments { /* private fields */ }Expand description
Owned fixed-size device ICP moments. No buffer is pooled or input-borrowed.
Implementations§
Source§impl GpuIcpMoments
impl GpuIcpMoments
Sourcepub const fn normalization_scale(&self) -> f32
pub const fn normalization_scale(&self) -> f32
Physical coordinate scale for the 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 residual sum word 15.
Sourcepub fn buffer(&self) -> &Buffer
pub fn buffer(&self) -> &Buffer
176-byte storage: u32 status/count/two reserved zeros, two vec4
Sourcepub const fn readback_bytes(&self) -> u64
pub const fn readback_bytes(&self) -> u64
Explicit readback size; zero for an empty source, otherwise 176 bytes.
Sourcepub fn download(&self, runtime: &WgpuRuntime) -> SpatialResult<GpuIcpStatistics>
pub fn download(&self, runtime: &WgpuRuntime) -> SpatialResult<GpuIcpStatistics>
Copies the fixed-size moments/status, waits, then validates and decodes compensated f32 sums in f64. No point/query/match payload is downloaded.