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