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 Sizes 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 StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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