pub struct PipelineBarrier {
pub memory_flags: MemoryBarrierFlags,
pub fence: bool,
pub label: Option<String>,
}Expand description
A pipeline barrier specifying which stages must complete before which can start.
Fields§
§memory_flags: MemoryBarrierFlagsMemory barrier flags.
fence: boolOptional fence for GPU-CPU sync.
label: Option<String>Label for debugging.
Implementations§
Source§impl PipelineBarrier
impl PipelineBarrier
Sourcepub fn memory(flags: MemoryBarrierFlags) -> Self
pub fn memory(flags: MemoryBarrierFlags) -> Self
Create a barrier with just memory flags.
Sourcepub fn memory_and_fence(flags: MemoryBarrierFlags) -> Self
pub fn memory_and_fence(flags: MemoryBarrierFlags) -> Self
Create a barrier with memory flags and a fence.
Sourcepub fn with_label(self, label: &str) -> Self
pub fn with_label(self, label: &str) -> Self
Set a debug label.
Sourcepub fn compute_to_vertex() -> Self
pub fn compute_to_vertex() -> Self
Shader storage + vertex attrib barrier (compute writes, vertex shader reads).
Sourcepub fn compute_to_indirect() -> Self
pub fn compute_to_indirect() -> Self
Compute writes, indirect draw reads.
Trait Implementations§
Source§impl Clone for PipelineBarrier
impl Clone for PipelineBarrier
Source§fn clone(&self) -> PipelineBarrier
fn clone(&self) -> PipelineBarrier
Returns a duplicate of the value. Read more
1.0.0 · 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 PipelineBarrier
impl RefUnwindSafe for PipelineBarrier
impl Send for PipelineBarrier
impl Sync for PipelineBarrier
impl Unpin for PipelineBarrier
impl UnsafeUnpin for PipelineBarrier
impl UnwindSafe for PipelineBarrier
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.