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
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
)
&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
)
&mut self,
view: &R::DepthStencilView,
has_depth: bool,
has_stencil: bool,
dim: Dimensions
)
Add a depth or stencil view to the specified slot
fn get_view(&self) -> (u16, u16, u16)
Get the rendering view (returns values > 0)
Trait Implementations
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: 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,
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: 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,
fn hash<__HR: Hasher>(&self, __arg_0: &mut __HR)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the state provided.
impl<R: PartialEq + Resources> PartialEq for PixelTargetSet<R> where
R::RenderTargetView: PartialEq,
R::DepthStencilView: PartialEq,
R::DepthStencilView: PartialEq,
[src]
R::RenderTargetView: PartialEq,
R::DepthStencilView: PartialEq,
R::DepthStencilView: PartialEq,
fn eq(&self, __arg_0: &PixelTargetSet<R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PixelTargetSet<R>) -> bool
This method tests for !=
.