Struct sierra::RenderingInfo
source · pub struct RenderingInfo<'a> {
pub render_area: Option<Rect>,
pub colors: &'a [RenderingColorInfo],
pub depth_stencil: Option<RenderingDepthStencilAttachmentInfo>,
}
Fields§
§render_area: Option<Rect>
§colors: &'a [RenderingColorInfo]
§depth_stencil: Option<RenderingDepthStencilAttachmentInfo>
Implementations§
source§impl<'a> RenderingInfo<'a>
impl<'a> RenderingInfo<'a>
pub const fn new() -> Self
pub fn render_area(self, render_area: Rect) -> Self
pub fn colors(self, colors: &'a [RenderingColorInfo]) -> Self
pub fn color(self, color: &'a RenderingColorInfo) -> Self
pub fn depth(self, depth: RenderingDepthInfo) -> Self
pub fn stencil(self, stencil: RenderingStencilInfo) -> Self
pub fn depth_stencil(self, depth_stencil: RenderingDepthStencilInfo) -> Self
Trait Implementations§
source§impl<'a> Clone for RenderingInfo<'a>
impl<'a> Clone for RenderingInfo<'a>
source§fn clone(&self) -> RenderingInfo<'a>
fn clone(&self) -> RenderingInfo<'a>
Returns a copy 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 moresource§impl<'a> Debug for RenderingInfo<'a>
impl<'a> Debug for RenderingInfo<'a>
source§impl<'a> PartialEq<RenderingInfo<'a>> for RenderingInfo<'a>
impl<'a> PartialEq<RenderingInfo<'a>> for RenderingInfo<'a>
source§fn eq(&self, other: &RenderingInfo<'a>) -> bool
fn eq(&self, other: &RenderingInfo<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.