Struct gfx::core::pso::PixelTargetSet []

pub struct PixelTargetSet<R> where R: Resources {
    pub colors: [Option<R::RenderTargetView>; 4],
    pub depth: Option<R::DepthStencilView>,
    pub stencil: Option<R::DepthStencilView>,
    pub size: (u16, u16, u16, AaMode),
}

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

size: (u16, u16, u16, AaMode)

Rendering dimensions

Methods

impl<R> PixelTargetSet<R> where R: Resources

fn new() -> PixelTargetSet<R>

Create an empty set

fn add_color(&mut self, slot: u8, view: &R::RenderTargetView, dim: (u16, u16, u16, AaMode))

Add a color view to the specified slot

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

Add a depth or stencil view to the specified slot

Trait Implementations

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

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

Formats the value using the given formatter.

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

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

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

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