pub struct BarrierSet { /* private fields */ }Expand description
A collection of ResourceBarriers that form a complete barrier schedule
for one pipeline configuration.
Implementations§
Source§impl BarrierSet
impl BarrierSet
Sourcepub fn add(&mut self, barrier: ResourceBarrier)
pub fn add(&mut self, barrier: ResourceBarrier)
Append a barrier.
Sourcepub fn barriers_from(&self, stage: PipelineStage) -> Vec<&ResourceBarrier>
pub fn barriers_from(&self, stage: PipelineStage) -> Vec<&ResourceBarrier>
Return all barriers whose src_stage matches stage.
Sourcepub fn barriers_to(&self, stage: PipelineStage) -> Vec<&ResourceBarrier>
pub fn barriers_to(&self, stage: PipelineStage) -> Vec<&ResourceBarrier>
Return all barriers whose dst_stage matches stage.
Sourcepub fn validate(&self) -> Vec<&ResourceBarrier>
pub fn validate(&self) -> Vec<&ResourceBarrier>
Validate that every barrier has src < dst (i.e., no backwards
dependencies). Returns the list of invalid barriers.
Trait Implementations§
Source§impl Clone for BarrierSet
impl Clone for BarrierSet
Source§fn clone(&self) -> BarrierSet
fn clone(&self) -> BarrierSet
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 BarrierSet
impl Debug for BarrierSet
Source§impl Default for BarrierSet
impl Default for BarrierSet
Source§fn default() -> BarrierSet
fn default() -> BarrierSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BarrierSet
impl RefUnwindSafe for BarrierSet
impl Send for BarrierSet
impl Sync for BarrierSet
impl Unpin for BarrierSet
impl UnsafeUnpin for BarrierSet
impl UnwindSafe for BarrierSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more