pub struct GpuIssInput { /* private fields */ }Expand description
Explicitly uploaded ISS positions/tree/queries, reusable on one runtime. CPU tree construction is external; subsequent search and selection run on GPU.
Implementations§
Source§impl GpuIssInput
impl GpuIssInput
Sourcepub fn upload(runtime: &WgpuRuntime, tree: &KdTree) -> SpatialResult<Self>
pub fn upload(runtime: &WgpuRuntime, tree: &KdTree) -> SpatialResult<Self>
Uploads a finite CPU tree and original-order queries. The query buffer is also the covariance position buffer: 32 bytes per point plus 32 per tree node, with no duplicate sample upload. Finite f32 extent squares required.
Sourcepub fn upload_with_gpu_gather(
runtime: &WgpuRuntime,
tree: &KdTree,
) -> SpatialResult<Self>
pub fn upload_with_gpu_gather( runtime: &WgpuRuntime, tree: &KdTree, ) -> SpatialResult<Self>
Explicitly generates tree points and original-order query/position
records in one integer GPU pass. Host payload is 16N + 32M bytes,
compared with 32N + 32M for upload; device output bytes are 32N.
No readback or completion wait. CPU partitioning, validation and node
staging remain. Removes 32N host packing bytes, with 16*N transient
GPU input bytes beside owned outputs. Small inputs may be slower;
placement is explicit and existing ISS device requirements apply.
Sourcepub const fn point_count(&self) -> u32
pub const fn point_count(&self) -> u32
Original point count.
Sourcepub const fn upload_transfers(&self) -> TransferStats
pub const fn upload_transfers(&self) -> TransferStats
Payload explicitly transferred at construction (zero for empty input), including device output bytes for the GPU gather constructor.
Sourcepub fn neighborhoods_resident(
&self,
runtime: &WgpuRuntime,
salient_radius: f32,
non_max_radius: f32,
salient_capacity: u32,
non_max_capacity: u32,
) -> SpatialResult<GpuIssNeighborhoods>
pub fn neighborhoods_resident( &self, runtime: &WgpuRuntime, salient_radius: f32, non_max_radius: f32, salient_capacity: u32, non_max_capacity: u32, ) -> SpatialResult<GpuIssNeighborhoods>
Computes both reusable radius graphs, including self, without readback or a host wait. Every match is counted; selection rejects overflow.
Sourcepub fn keypoints_resident(
&self,
runtime: &WgpuRuntime,
neighbors: &GpuIssNeighborhoods,
gamma_21: f32,
gamma_32: f32,
min_neighbors: u32,
) -> SpatialResult<GpuIssKeypoints>
pub fn keypoints_resident( &self, runtime: &WgpuRuntime, neighbors: &GpuIssNeighborhoods, gamma_21: f32, gamma_32: f32, min_neighbors: u32, ) -> SpatialResult<GpuIssKeypoints>
Runs covariance/eigenvalue saliency then local-maximum selection in two passes in one submission. Both graphs must be complete, even for rejected candidates. Gamma values must be finite in [0,1]; min_neighbors includes self. Equal computed maxima all survive. No payload transfer or host wait. GPU f32 arithmetic can change threshold/NMS decisions versus CPU f64. Nonzero local extents whose f32 square is subnormal/zero invalidate the result with numerical status rather than evaluating underflowed covariance. Bad graph status invalidates and zeros ALL scores/flags; GPU consumers must check status and explicit download rejects invalid output.