Struct rafx_framework::graph::RenderGraphBufferConstraint[][src]

pub struct RenderGraphBufferConstraint {
    pub size: Option<u64>,
    pub resource_type: RafxResourceType,
}

Constraints on a buffer. Constraints are set per-field and start out None (i.e. unconstrained) The rendergraph will derive specifications from the constraints

Fields

size: Option<u64>resource_type: RafxResourceType

Implementations

impl RenderGraphBufferConstraint[src]

impl RenderGraphBufferConstraint[src]

pub fn can_merge(&self, other: &RenderGraphBufferConstraint) -> bool[src]

Returns true if no fields in the two constraints are conflicting

pub fn try_merge(&mut self, other: &RenderGraphBufferConstraint) -> bool[src]

Merge other's constraints into self, but only if there are no conflicts. No modification occurs if any conflict exists

pub fn partial_merge(&mut self, other: &RenderGraphBufferConstraint) -> bool[src]

Merge other's constraints into self. We will merge fields where we can and skip fields with conflicts

pub fn set(&mut self, other: &RenderGraphBufferSpecification)[src]

Sets the constraints based on the given specification

Trait Implementations

impl Clone for RenderGraphBufferConstraint[src]

impl Debug for RenderGraphBufferConstraint[src]

impl Default for RenderGraphBufferConstraint[src]

impl From<RenderGraphBufferSpecification> for RenderGraphBufferConstraint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Downcast + Send + Sync
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.