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>,
}Expand description
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§
Source§impl<R: Resources> PixelTargetSet<R>
impl<R: Resources> PixelTargetSet<R>
Sourcepub fn add_color(
&mut self,
slot: ColorSlot,
view: &R::RenderTargetView,
dim: Dimensions,
)
pub fn add_color( &mut self, slot: ColorSlot, view: &R::RenderTargetView, dim: Dimensions, )
Add a color view to the specified slot
Sourcepub fn add_depth_stencil(
&mut self,
view: &R::DepthStencilView,
has_depth: bool,
has_stencil: bool,
dim: Dimensions,
)
pub 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§
Source§impl<R: Clone + Resources> Clone for PixelTargetSet<R>
impl<R: Clone + Resources> Clone for PixelTargetSet<R>
Source§fn clone(&self) -> PixelTargetSet<R>
fn clone(&self) -> PixelTargetSet<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<R: Copy + Resources> Copy for PixelTargetSet<R>
impl<R: Eq + Resources> Eq for PixelTargetSet<R>
impl<R: Resources> StructuralPartialEq for PixelTargetSet<R>
Auto Trait Implementations§
impl<R> Freeze for PixelTargetSet<R>
impl<R> RefUnwindSafe for PixelTargetSet<R>where
<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>
impl<R> UnwindSafe for PixelTargetSet<R>where
<R as Resources>::DepthStencilView: UnwindSafe,
<R as Resources>::RenderTargetView: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more