pub struct BufferSyncInfo {
pub ranges: Box<[BufferSubresourceSyncInfo]>,
}Expand description
Synchronization information for a buffer.
Fields§
§ranges: Box<[BufferSubresourceSyncInfo]>Access state for the tracked buffer ranges.
Implementations§
Source§impl BufferSyncInfo
impl BufferSyncInfo
Sourcepub fn compact(&mut self)
pub fn compact(&mut self)
Compacts adjacent ranges with identical synchronization requirements.
Runs in linear time over ranges. The implementation reuses the existing range storage by
converting the boxed slice into a vector, compacting entries in place, and converting it back
into a boxed slice.
Sourcepub fn into_compacted(self) -> Self
pub fn into_compacted(self) -> Self
Returns a compacted copy of this synchronization snapshot.
This has the same linear-time and in-place storage characteristics as Self::compact, but
consumes and returns the snapshot for use in iterator chains or expression-oriented code.
Trait Implementations§
Source§impl Clone for BufferSyncInfo
impl Clone for BufferSyncInfo
Source§fn clone(&self) -> BufferSyncInfo
fn clone(&self) -> BufferSyncInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferSyncInfo
impl Debug for BufferSyncInfo
impl Eq for BufferSyncInfo
Source§impl PartialEq for BufferSyncInfo
impl PartialEq for BufferSyncInfo
Source§fn eq(&self, other: &BufferSyncInfo) -> bool
fn eq(&self, other: &BufferSyncInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BufferSyncInfo
Auto Trait Implementations§
impl Freeze for BufferSyncInfo
impl RefUnwindSafe for BufferSyncInfo
impl Send for BufferSyncInfo
impl Sync for BufferSyncInfo
impl Unpin for BufferSyncInfo
impl UnsafeUnpin for BufferSyncInfo
impl UnwindSafe for BufferSyncInfo
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