pub enum ImageFormat {
Bc1,
Bc3,
A8,
R8,
Bgra8,
R32F,
R24G8,
}Expand description
Video::ImageBuffer::Format, mapped to DXGI by the VideoDX11 texture-creation table.
Variants§
Bc1
BC1 (DXT1) blocks.
Bc3
BC3 (DXT5) blocks.
A8
One byte of alpha per pixel.
R8
One byte of red per pixel.
Bgra8
Four bytes per pixel: blue, green, red, alpha.
R32F
One 32-bit float per pixel.
R24G8
24-bit depth and 8-bit stencil per pixel (inferred).
Implementations§
Source§impl ImageFormat
impl ImageFormat
Sourcepub fn level_size(self, w: u32, h: u32) -> usize
pub fn level_size(self, w: u32, h: u32) -> usize
Byte size of one level.
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
Source§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageFormat
Source§impl Debug for ImageFormat
impl Debug for ImageFormat
impl Eq for ImageFormat
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnsafeUnpin for ImageFormat
impl UnwindSafe for ImageFormat
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