Struct gfx_core::pso::PixelTargetSet
[−]
[src]
pub struct PixelTargetSet<R: Resources> { pub colors: [Option<R::RenderTargetView>; 4], 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: [Option<R::RenderTargetView>; 4]
Array of color target views
depth: Option<R::DepthStencilView>
Depth target view
stencil: Option<R::DepthStencilView>
Stencil target view
size: Dimensions
Rendering dimensions
Methods
impl<R: Resources> PixelTargetSet<R>
[src]
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
impl<R: Debug + Resources> Debug for PixelTargetSet<R> where R::RenderTargetView: Debug, R::DepthStencilView: Debug
[src]
impl<R: Clone + Resources> Clone for PixelTargetSet<R> where R::RenderTargetView: Clone, R::DepthStencilView: Clone
[src]
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