pub struct ImageSyncInfo {
pub subresources: Box<[ImageSubresourceSyncInfo]>,
}Expand description
Synchronization information for an image.
Fields§
§subresources: Box<[ImageSubresourceSyncInfo]>Access state for the tracked image subresource ranges.
Implementations§
Source§impl ImageSyncInfo
impl ImageSyncInfo
Sourcepub fn compact(&mut self)
pub fn compact(&mut self)
Compacts adjacent subresource entries with identical synchronization requirements.
This is opt-in because some callers may prefer the exact per-range snapshot produced by the internal access tracker.
Runs in linear time over subresources. Image compaction performs two passes, first merging
adjacent mip levels and then adjacent array layers, and uses temporary vector storage for
each pass.
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 temporary-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 ImageSyncInfo
impl Clone for ImageSyncInfo
Source§fn clone(&self) -> ImageSyncInfo
fn clone(&self) -> ImageSyncInfo
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 moreAuto Trait Implementations§
impl Freeze for ImageSyncInfo
impl RefUnwindSafe for ImageSyncInfo
impl Send for ImageSyncInfo
impl Sync for ImageSyncInfo
impl Unpin for ImageSyncInfo
impl UnsafeUnpin for ImageSyncInfo
impl UnwindSafe for ImageSyncInfo
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