pub enum DataFormat {
Show 15 variants
Red,
RG,
RGB,
BGR,
RGBA,
BGRA,
RedInteger,
RGInteger,
RGBInteger,
BGRInteger,
RGBAInteger,
BGRAInteger,
StencilInteger,
DepthComponent,
DepthStencil,
}
Variants§
Red
RG
RGB
BGR
RGBA
BGRA
RedInteger
RGInteger
RGBInteger
BGRInteger
RGBAInteger
BGRAInteger
StencilInteger
DepthComponent
DepthStencil
Trait Implementations§
Source§impl Clone for DataFormat
impl Clone for DataFormat
Source§fn clone(&self) -> DataFormat
fn clone(&self) -> DataFormat
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 moreSource§impl Debug for DataFormat
impl Debug for DataFormat
Source§impl<'a> From<&'a DataFormat> for GLenum
impl<'a> From<&'a DataFormat> for GLenum
Source§fn from(data_format: &'a DataFormat) -> Self
fn from(data_format: &'a DataFormat) -> Self
Converts to this type from the input type.
Source§impl From<DataFormat> for GLenum
impl From<DataFormat> for GLenum
Source§fn from(data_format: DataFormat) -> Self
fn from(data_format: DataFormat) -> Self
Converts to this type from the input type.
Source§impl From<u32> for DataFormat
impl From<u32> for DataFormat
Source§impl Hash for DataFormat
impl Hash for DataFormat
Source§impl Ord for DataFormat
impl Ord for DataFormat
Source§fn cmp(&self, other: &DataFormat) -> Ordering
fn cmp(&self, other: &DataFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DataFormat
impl PartialEq for DataFormat
Source§impl PartialOrd for DataFormat
impl PartialOrd for DataFormat
impl Copy for DataFormat
impl Eq for DataFormat
impl StructuralPartialEq for DataFormat
Auto Trait Implementations§
impl Freeze for DataFormat
impl RefUnwindSafe for DataFormat
impl Send for DataFormat
impl Sync for DataFormat
impl Unpin for DataFormat
impl UnwindSafe for DataFormat
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