Struct wgpu_core::init_tracker::InitTracker
source · pub(crate) struct InitTracker<Idx: Ord + Copy + Default> {
uninitialized_ranges: SmallVec<[Range<Idx>; 1]>,
}
Expand description
Tracks initialization status of a linear range from 0..size
Fields§
§uninitialized_ranges: SmallVec<[Range<Idx>; 1]>
Implementations§
source§impl InitTracker<BufferAddress>
impl InitTracker<BufferAddress>
sourcepub(crate) fn check_action(
&self,
action: &BufferInitTrackerAction
) -> Option<BufferInitTrackerAction>
pub(crate) fn check_action( &self, action: &BufferInitTrackerAction ) -> Option<BufferInitTrackerAction>
Checks if an action has/requires any effect on the initialization status and shrinks its range if possible.
sourcepub(crate) fn create_action(
&self,
id: BufferId,
query_range: Range<BufferAddress>,
kind: MemoryInitKind
) -> Option<BufferInitTrackerAction>
pub(crate) fn create_action( &self, id: BufferId, query_range: Range<BufferAddress>, kind: MemoryInitKind ) -> Option<BufferInitTrackerAction>
Creates an action if it would have any effect on the initialization status and shrinks the range if possible.
Trait Implementations§
Auto Trait Implementations§
impl<Idx> RefUnwindSafe for InitTracker<Idx>where Idx: RefUnwindSafe,
impl<Idx> Send for InitTracker<Idx>where Idx: Send,
impl<Idx> Sync for InitTracker<Idx>where Idx: Sync,
impl<Idx> Unpin for InitTracker<Idx>where Idx: Unpin,
impl<Idx> UnwindSafe for InitTracker<Idx>where Idx: UnwindSafe + RefUnwindSafe,
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