Realm

oa::vision::DetectionBuffer

A fixed-capacity GPU-consumable detection buffer. Construction requires an Engine; dropping the buffer never waits — the engine’s retirement service keeps submitted resources alive through completion.

StRust public API

Declaration

pub struct DetectionBuffer { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn upload(&mut self, detections: &[Detection]) -> Result<()>
pub fn mark_consumed(&mut self, completion: &Event) -> Result<()>
pub fn is_ready(&self) -> Result<bool>
pub const fn count(&self) -> u32
pub const fn capacity(&self) -> u32

Associated Functions

pub fn create_host_upload(capacity: u32) -> Result<Self>
pub fn create_host_upload_on(engine: &Engine, capacity: u32) -> Result<Self>

Public Method Documentation

pub fn upload(&mut self, detections: &[Detection]) -> Result<()>
No public source comment is attached to this declaration.
pub fn mark_consumed(&mut self, completion: &Event) -> Result<()>
No public source comment is attached to this declaration.
pub fn is_ready( &self ) -> Result<bool>
No public source comment is attached to this declaration.
pub const fn count( &self ) -> u32
No public source comment is attached to this declaration.
pub const fn capacity( &self ) -> u32
No public source comment is attached to this declaration.
pub fn create_host_upload( capacity: u32 ) -> Result<Self>
Allocate a host-uploadable buffer for capacity detection records. Native GPU postprocess producers use the same record layout and consumer API. Errors Returns an error when capacity is zero, the capacity byte extent overflows, or allocation fails.
pub fn create_host_upload_on( engine: &Engine, capacity: u32 ) -> Result<Self>
No public source comment is attached to this declaration.