pub struct ReadStages(/* private fields */);Expand description
Which shader stage(s) read a graph resource across a contiguous read-run
(the passes that read one resource version before the next writer). Carried
on a barrier whose Read side spans this run so a backend can satisfy it in a
single transition: a write made visible to both a compute consumer and a
fragment consumer needs one barrier covering both stages, not a per-consumer
read-to-read barrier (which would not carry the producing write). Derived
from each reading pass’s PassKind (a render pass samples in the fragment
stage, a compute pass in the compute stage); empty on a barrier with no Read
side (a write-only producer transition). Add bits as passes read in stages
the two current ones do not model.
Implementations§
Source§impl ReadStages
impl ReadStages
Trait Implementations§
Source§impl BitOr for ReadStages
impl BitOr for ReadStages
Source§impl Clone for ReadStages
impl Clone for ReadStages
Source§fn clone(&self) -> ReadStages
fn clone(&self) -> ReadStages
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 moreimpl Copy for ReadStages
Source§impl Debug for ReadStages
impl Debug for ReadStages
impl Eq for ReadStages
Source§impl PartialEq for ReadStages
impl PartialEq for ReadStages
impl StructuralPartialEq for ReadStages
Auto Trait Implementations§
impl Freeze for ReadStages
impl RefUnwindSafe for ReadStages
impl Send for ReadStages
impl Sync for ReadStages
impl Unpin for ReadStages
impl UnsafeUnpin for ReadStages
impl UnwindSafe for ReadStages
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.