Skip to main content

GpuIssKeypoints

Struct GpuIssKeypoints 

Source
pub struct GpuIssKeypoints { /* private fields */ }
Expand description

Owned resident ISS selection flags, eigenvalue/eligibility rows and validity status. No result storage is pooled. Custom consumers must inspect status.

Implementations§

Source§

impl GpuIssKeypoints

Source

pub fn buffer(&self) -> &Buffer

Original-order u32 flags (0 or 1), with 4 unused bytes for empty input.

Source

pub fn scores_buffer(&self) -> &Buffer

Original-order vec4: ascending eigenvalues and eligibility (0 or 1). Rejected ratio tests still expose eigenvalues; insufficient support is zero. Empty input has 16 unused bytes. Invalid graph output is all zero.

Source

pub fn status_buffer(&self) -> &Buffer

Eight u32 words: bad salient rows, bad NMS rows, required salient/NMS capacity, malformed rows, last bad row plus one, numerical errors, reserved. All zero means valid output. Consumers must reject any nonzero status.

Source

pub const fn point_count(&self) -> u32

Original point/flag count.

Source

pub const fn readback_bytes(&self) -> u64

Explicit flag/status readback payload; scores are not downloaded.

Source

pub fn download( &self, runtime: &WgpuRuntime, ) -> SpatialResult<(Vec<u32>, TransferStats)>

Explicitly downloads flags/status and returns ascending original indices. Waits for completion; malformed/incomplete graphs reject before decoding. Payload is 4 bytes per input point plus 32 status bytes, empty input zero. CPU ordered flag compaction occurs here; no neighborhood/eigen readback.

Source

pub fn download_scores( &self, runtime: &WgpuRuntime, ) -> SpatialResult<(Vec<[f32; 4]>, TransferStats)>

Explicitly downloads eigenvalue/eligibility rows and status for diagnostics. This separate opt-in transfer costs 16 bytes per point plus 32 status bytes (empty input zero); the ordinary selection API does not call it. Waits for completion and rejects invalid status/nonfinite or unsorted rows.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,