Struct rafx_framework::graph::RenderGraphImageConstraint[][src]

pub struct RenderGraphImageConstraint {
    pub samples: Option<RafxSampleCount>,
    pub format: Option<RafxFormat>,
    pub resource_type: RafxResourceType,
    pub extents: Option<RenderGraphImageExtents>,
    pub layer_count: Option<u32>,
    pub mip_count: Option<u32>,
}

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

Fields

samples: Option<RafxSampleCount>format: Option<RafxFormat>resource_type: RafxResourceTypeextents: Option<RenderGraphImageExtents>layer_count: Option<u32>mip_count: Option<u32>

Implementations

impl RenderGraphImageConstraint[src]

impl RenderGraphImageConstraint[src]

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

Returns true if no fields in the two constraints are conflicting

pub fn try_merge(&mut self, other: &RenderGraphImageConstraint) -> 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: &RenderGraphImageConstraint) -> 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: &RenderGraphImageSpecification)[src]

Sets the constraints based on the given specification

Trait Implementations

impl Clone for RenderGraphImageConstraint[src]

impl Debug for RenderGraphImageConstraint[src]

impl Default for RenderGraphImageConstraint[src]

impl From<RenderGraphImageSpecification> for RenderGraphImageConstraint[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.