#[repr(u8)]
pub enum RenderTextureFormat {
RGB8,
RGBA4,
RGBA8,
Depth16,
Depth24,
Depth32,
Depth24Stencil8,
}
Expand description
List of all the possible formats of renderable texture which could be use as attachment of framebuffer.
Each element of Depth
is a single depth value. The Graphics
converts it to
floating point, multiplies by the signed scale factor, adds the signed bias, and
clamps to the range [0,1].
Variants§
Implementations§
Trait Implementations§
source§impl Clone for RenderTextureFormat
impl Clone for RenderTextureFormat
source§fn clone(&self) -> RenderTextureFormat
fn clone(&self) -> RenderTextureFormat
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 RenderTextureFormat
impl Debug for RenderTextureFormat
source§impl From<RenderTextureFormat> for (GLenum, GLenum, GLenum)
impl From<RenderTextureFormat> for (GLenum, GLenum, GLenum)
source§fn from(format: RenderTextureFormat) -> Self
fn from(format: RenderTextureFormat) -> Self
Converts to this type from the input type.
source§impl PartialEq<RenderTextureFormat> for RenderTextureFormat
impl PartialEq<RenderTextureFormat> for RenderTextureFormat
source§fn eq(&self, other: &RenderTextureFormat) -> bool
fn eq(&self, other: &RenderTextureFormat) -> bool
impl Copy for RenderTextureFormat
impl Eq for RenderTextureFormat
impl StructuralEq for RenderTextureFormat
impl StructuralPartialEq for RenderTextureFormat
Auto Trait Implementations§
impl RefUnwindSafe for RenderTextureFormat
impl Send for RenderTextureFormat
impl Sync for RenderTextureFormat
impl Unpin for RenderTextureFormat
impl UnwindSafe for RenderTextureFormat
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