pub struct RenderGraphBufferSpecification {
pub size: u64,
pub resource_type: RafxResourceType,
}Expand description
Immutable, fully-specified attributes of a buffer. A constraint is partially specified and the graph will use constraints to solve for the specification
Fields§
§size: u64§resource_type: RafxResourceTypeImplementations§
Source§impl RenderGraphBufferSpecification
impl RenderGraphBufferSpecification
Sourcepub fn can_merge(&self, other: &RenderGraphBufferSpecification) -> bool
pub fn can_merge(&self, other: &RenderGraphBufferSpecification) -> bool
Returns true if no fields in the two constraints are conflicting
Sourcepub fn try_merge(&mut self, other: &RenderGraphBufferSpecification) -> bool
pub fn try_merge(&mut self, other: &RenderGraphBufferSpecification) -> bool
Merge other’s constraints into self, but only if there are no conflicts. No modification occurs if any conflict exists
pub fn specifications_are_compatible( written: &RenderGraphBufferSpecification, read: &RenderGraphBufferSpecification, ) -> bool
Trait Implementations§
Source§impl Clone for RenderGraphBufferSpecification
impl Clone for RenderGraphBufferSpecification
Source§fn clone(&self) -> RenderGraphBufferSpecification
fn clone(&self) -> RenderGraphBufferSpecification
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 moreSource§impl From<RenderGraphBufferSpecification> for RenderGraphBufferConstraint
impl From<RenderGraphBufferSpecification> for RenderGraphBufferConstraint
Source§fn from(specification: RenderGraphBufferSpecification) -> Self
fn from(specification: RenderGraphBufferSpecification) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RenderGraphBufferSpecification
impl PartialEq for RenderGraphBufferSpecification
Source§fn eq(&self, other: &RenderGraphBufferSpecification) -> bool
fn eq(&self, other: &RenderGraphBufferSpecification) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RenderGraphBufferSpecification
impl StructuralPartialEq for RenderGraphBufferSpecification
Auto Trait Implementations§
impl Freeze for RenderGraphBufferSpecification
impl RefUnwindSafe for RenderGraphBufferSpecification
impl Send for RenderGraphBufferSpecification
impl Sync for RenderGraphBufferSpecification
impl Unpin for RenderGraphBufferSpecification
impl UnwindSafe for RenderGraphBufferSpecification
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.