pub struct SurfaceParams { /* private fields */ }
Expand description
The setup data of Surface
which wraps common rendering operations to a render-target.
Likes clearing, MSAA resolves, etc.. The RenderTarget
is the window framebuffer as
default, but you can specify RenderTarget
with SurfaceParams::set_attachments
manually also.
Implementations§
source§impl SurfaceParams
impl SurfaceParams
sourcepub fn set_attachments<T1>(
&mut self,
colors: &[RenderTextureHandle],
depth_stencil: T1
) -> Result<()>where
T1: Into<Option<RenderTextureHandle>>,
pub fn set_attachments<T1>(
&mut self,
colors: &[RenderTextureHandle],
depth_stencil: T1
) -> Result<()>where
T1: Into<Option<RenderTextureHandle>>,
Sets the attachments of internal frame-buffer. It consists of multiple color attachments
and a optional Depth/DepthStencil
buffer attachment.
If none attachment is assigned, the default framebuffer generated by the system will be used.
Trait Implementations§
source§impl Clone for SurfaceParams
impl Clone for SurfaceParams
source§fn clone(&self) -> SurfaceParams
fn clone(&self) -> SurfaceParams
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 Debug for SurfaceParams
impl Debug for SurfaceParams
source§impl Default for SurfaceParams
impl Default for SurfaceParams
impl Copy for SurfaceParams
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceParams
impl Send for SurfaceParams
impl Sync for SurfaceParams
impl Unpin for SurfaceParams
impl UnwindSafe for SurfaceParams
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more