pub struct GpuQueryBatch { /* private fields */ }Expand description
Immutable finite query positions, explicitly uploaded or generated from a tree on GPU. Reusable across trees and passes on the same runtime.
Implementations§
Source§impl GpuQueryBatch
impl GpuQueryBatch
Sourcepub fn upload(
runtime: &WgpuRuntime,
queries: &[[f32; 3]],
) -> SpatialResult<Self>
pub fn upload( runtime: &WgpuRuntime, queries: &[[f32; 3]], ) -> SpatialResult<Self>
Uploads XYZ queries as padded 16-byte records. Finite XYZ and supported buffer/dispatch sizes are required; empty batches allocate no buffer.
Sourcepub const fn query_count(&self) -> u32
pub const fn query_count(&self) -> u32
Number of XYZ query records.
Sourcepub const fn upload_transfers(&self) -> TransferStats
pub const fn upload_transfers(&self) -> TransferStats
Payload bytes transferred during explicit construction. GPU-generated queries report device-to-device output bytes and zero host upload bytes.
Auto Trait Implementations§
impl !RefUnwindSafe for GpuQueryBatch
impl !UnwindSafe for GpuQueryBatch
impl Freeze for GpuQueryBatch
impl Send for GpuQueryBatch
impl Sync for GpuQueryBatch
impl Unpin for GpuQueryBatch
impl UnsafeUnpin for GpuQueryBatch
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