[][src]Struct gfx_core::pso::PixelTargetSet

pub struct PixelTargetSet<R: Resources> {
    pub colors: [Option<R::RenderTargetView>; 4],
    pub depth: Option<R::DepthStencilView>,
    pub stencil: Option<R::DepthStencilView>,
    pub dimensions: Option<Dimensions>,
}

A complete set of render targets to be used for pixel export in PSO.

Fields

colors: [Option<R::RenderTargetView>; 4]

Array of color target views

depth: Option<R::DepthStencilView>

Depth target view

stencil: Option<R::DepthStencilView>

Stencil target view

dimensions: Option<Dimensions>

Rendering dimensions

Methods

impl<R: Resources> PixelTargetSet<R>[src]

pub fn new() -> Self[src]

Create an empty set

pub fn add_color(
    &mut self,
    slot: ColorSlot,
    view: &R::RenderTargetView,
    dim: Dimensions
)
[src]

Add a color view to the specified slot

pub fn add_depth_stencil(
    &mut self,
    view: &R::DepthStencilView,
    has_depth: bool,
    has_stencil: bool,
    dim: Dimensions
)
[src]

Add a depth or stencil view to the specified slot

pub fn get_view(&self) -> (u16, u16, u16)[src]

Get the rendering view (returns values > 0)

Trait Implementations

impl<R: Eq + Resources> Eq for PixelTargetSet<R> where
    R::RenderTargetView: Eq,
    R::DepthStencilView: Eq,
    R::DepthStencilView: Eq
[src]

impl<R: Copy + Resources> Copy for PixelTargetSet<R> where
    R::RenderTargetView: Copy,
    R::DepthStencilView: Copy,
    R::DepthStencilView: Copy
[src]

impl<R: Clone + Resources> Clone for PixelTargetSet<R> where
    R::RenderTargetView: Clone,
    R::DepthStencilView: Clone,
    R::DepthStencilView: Clone
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<R: PartialEq + Resources> PartialEq<PixelTargetSet<R>> for PixelTargetSet<R> where
    R::RenderTargetView: PartialEq,
    R::DepthStencilView: PartialEq,
    R::DepthStencilView: PartialEq
[src]

impl<R: Hash + Resources> Hash for PixelTargetSet<R> where
    R::RenderTargetView: Hash,
    R::DepthStencilView: Hash,
    R::DepthStencilView: Hash
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<R: Debug + Resources> Debug for PixelTargetSet<R> where
    R::RenderTargetView: Debug,
    R::DepthStencilView: Debug,
    R::DepthStencilView: Debug
[src]

Auto Trait Implementations

impl<R> Send for PixelTargetSet<R> where
    <R as Resources>::DepthStencilView: Send,
    <R as Resources>::RenderTargetView: Send

impl<R> Sync for PixelTargetSet<R> where
    <R as Resources>::DepthStencilView: Sync,
    <R as Resources>::RenderTargetView: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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