#[repr(u32)]pub enum BaseFormat {
R = 6_403,
RG = 33_319,
RGB = 6_407,
RGBA = 6_408,
Depth = 6_402,
DepthStencil = 34_041,
Stencil = 6_401,
}
Variants§
Implementations§
Source§impl BaseFormat
impl BaseFormat
Sourcepub fn num_components(self) -> u32
pub fn num_components(self) -> u32
Return the number of components that compose this format.
Trait Implementations§
Source§impl Clone for BaseFormat
impl Clone for BaseFormat
Source§fn clone(&self) -> BaseFormat
fn clone(&self) -> BaseFormat
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 BaseFormat
impl Debug for BaseFormat
Source§impl PartialEq for BaseFormat
impl PartialEq for BaseFormat
impl Copy for BaseFormat
impl Eq for BaseFormat
impl StructuralPartialEq for BaseFormat
Auto Trait Implementations§
impl Freeze for BaseFormat
impl RefUnwindSafe for BaseFormat
impl Send for BaseFormat
impl Sync for BaseFormat
impl Unpin for BaseFormat
impl UnwindSafe for BaseFormat
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