Struct rafx_framework::graph::RenderGraphImageSpecification[][src]

pub struct RenderGraphImageSpecification {
    pub samples: RafxSampleCount,
    pub format: RafxFormat,
    pub resource_type: RafxResourceType,
    pub extents: RenderGraphImageExtents,
    pub layer_count: u32,
    pub mip_count: u32,
}

Immutable, fully-specified attributes of an image. A constraint is partially specified and the graph will use constraints to solve for the specification

Fields

samples: RafxSampleCountformat: RafxFormatresource_type: RafxResourceTypeextents: RenderGraphImageExtentslayer_count: u32mip_count: u32

Implementations

impl RenderGraphImageSpecification[src]

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

Returns true if no fields in the two constraints are conflicting

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

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

Trait Implementations

impl Clone for RenderGraphImageSpecification[src]

impl Debug for RenderGraphImageSpecification[src]

impl Eq for RenderGraphImageSpecification[src]

impl From<RenderGraphImageSpecification> for RenderGraphImageConstraint[src]

impl Hash for RenderGraphImageSpecification[src]

impl PartialEq<RenderGraphImageSpecification> for RenderGraphImageSpecification[src]

impl StructuralEq for RenderGraphImageSpecification[src]

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