pub enum Format {
R(Size),
RG(Size, Size),
RGB(Size, Size, Size),
RGBA(Size, Size, Size, Size),
SRGB(Size, Size, Size),
SRGBA(Size, Size, Size, Size),
Depth(Size),
DepthStencil(Size, Size),
}
Expand description
Format of a pixel.
Whichever the constructor you choose, the carried Size
s represent how many bits are used to
represent each channel.
Variants
R(Size)
Holds a red-only channel.
RG(Size, Size)
Holds red and green channels.
RGB(Size, Size, Size)
Holds red, green and blue channels.
RGBA(Size, Size, Size, Size)
Holds red, green, blue and alpha channels.
SRGB(Size, Size, Size)
Holds a red, green and blue channels in sRGB colorspace.
SRGBA(Size, Size, Size, Size)
Holds a red, green and blue channels in sRGB colorspace, plus an alpha channel.
Depth(Size)
Holds a depth channel.
DepthStencil(Size, Size)
Holds a depth+stencil channel.
Implementations
Trait Implementations
impl Copy for Format
impl Eq for Format
impl StructuralEq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more