pub struct StreamAllocation { /* private fields */ }Expand description
Handle to a stream-ordered memory allocation.
An allocation lives on the GPU and is associated with a specific stream and memory pool. It becomes available when all preceding work on the stream has completed, and is returned to the pool when freed (also stream-ordered).
Implementations§
Source§impl StreamAllocation
impl StreamAllocation
Sourcepub fn stream_id(&self) -> StreamOrderId
pub fn stream_id(&self) -> StreamOrderId
Returns the ordering identifier of the stream this allocation is bound to in the owning pool’s stream-ordered model.
Sourcepub fn ready_seq(&self) -> u64
pub fn ready_seq(&self) -> u64
Returns the sequence number at which this allocation becomes valid on
its stream within the owning pool’s StreamOrderModel.
The allocation is safe to read on its own stream only once that stream
has executed past this point (queryable via
StreamMemoryPool::is_ready).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamAllocation
impl RefUnwindSafe for StreamAllocation
impl Send for StreamAllocation
impl Sync for StreamAllocation
impl Unpin for StreamAllocation
impl UnsafeUnpin for StreamAllocation
impl UnwindSafe for StreamAllocation
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