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

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

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

Fields

colors

Array of color target views

depth

Depth target view

stencil

Stencil target view

size

Rendering dimensions

Methods

impl<R: Resources> PixelTargetSet<R>

fn new() -> PixelTargetSet<R>

Create an empty set

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

Add a color view to the specified slot

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

Add a depth or stencil view to the specified slot

Trait Implementations

Derived Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

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

fn clone(&self) -> PixelTargetSet<R>

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

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