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 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
Implementations
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][−]
&mut self,
slot: ColorSlot,
view: &R::RenderTargetView,
dim: Dimensions
)
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][−]
&mut self,
view: &R::DepthStencilView,
has_depth: bool,
has_stencil: bool,
dim: Dimensions
)
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: Clone + Resources> Clone for PixelTargetSet<R> where
R::RenderTargetView: Clone,
R::DepthStencilView: Clone,
R::DepthStencilView: Clone,
[src][+]
R::RenderTargetView: Clone,
R::DepthStencilView: Clone,
R::DepthStencilView: Clone,
impl<R: Copy + Resources> Copy for PixelTargetSet<R> where
R::RenderTargetView: Copy,
R::DepthStencilView: Copy,
R::DepthStencilView: Copy,
[src]
R::RenderTargetView: Copy,
R::DepthStencilView: Copy,
R::DepthStencilView: Copy,
impl<R: Debug + Resources> Debug for PixelTargetSet<R> where
R::RenderTargetView: Debug,
R::DepthStencilView: Debug,
R::DepthStencilView: Debug,
[src][+]
R::RenderTargetView: Debug,
R::DepthStencilView: Debug,
R::DepthStencilView: Debug,
impl<R: Eq + Resources> Eq for PixelTargetSet<R> where
R::RenderTargetView: Eq,
R::DepthStencilView: Eq,
R::DepthStencilView: Eq,
[src]
R::RenderTargetView: Eq,
R::DepthStencilView: Eq,
R::DepthStencilView: Eq,
impl<R: Hash + Resources> Hash for PixelTargetSet<R> where
R::RenderTargetView: Hash,
R::DepthStencilView: Hash,
R::DepthStencilView: Hash,
[src][+]
R::RenderTargetView: Hash,
R::DepthStencilView: Hash,
R::DepthStencilView: Hash,
impl<R: PartialEq + Resources> PartialEq<PixelTargetSet<R>> for PixelTargetSet<R> where
R::RenderTargetView: PartialEq,
R::DepthStencilView: PartialEq,
R::DepthStencilView: PartialEq,
[src][+]
R::RenderTargetView: PartialEq,
R::DepthStencilView: PartialEq,
R::DepthStencilView: PartialEq,
impl<R: Resources> StructuralEq for PixelTargetSet<R>
[src]
impl<R: Resources> StructuralPartialEq for PixelTargetSet<R>
[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for PixelTargetSet<R> where
<R as Resources>::DepthStencilView: RefUnwindSafe,
<R as Resources>::RenderTargetView: RefUnwindSafe,
<R as Resources>::DepthStencilView: RefUnwindSafe,
<R as Resources>::RenderTargetView: RefUnwindSafe,
impl<R> Send for PixelTargetSet<R>
impl<R> Sync for PixelTargetSet<R>
impl<R> Unpin for PixelTargetSet<R> where
<R as Resources>::DepthStencilView: Unpin,
<R as Resources>::RenderTargetView: Unpin,
<R as Resources>::DepthStencilView: Unpin,
<R as Resources>::RenderTargetView: Unpin,
impl<R> UnwindSafe for PixelTargetSet<R> where
<R as Resources>::DepthStencilView: UnwindSafe,
<R as Resources>::RenderTargetView: UnwindSafe,
<R as Resources>::DepthStencilView: UnwindSafe,
<R as Resources>::RenderTargetView: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,