#[repr(u32)]
pub enum Format {
Show 21 variants Unknown, L8, A8, Rgba4, Rgb5a1, Argb8, Rgbx8, Argb82, R32F, Rg16F, Rgba16F, Rgba32F, Dxt1, Dxt3, Dxt5, D16, D24S8, Rgba8, Null, Shadow16, Shadow24,
}
Available on crate feature tex only.
Expand description

Pixel format of a texture.

Variants

Unknown

L8

A8

Rgba4

Rgb5a1

Argb8

Rgbx8

Argb82

R32F

Rg16F

Rgba16F

Rgba32F

Dxt1

Dxt3

Dxt5

D16

D24S8

Rgba8

Null

Shadow16

Shadow24

Implementations

Texture format kind.

Channel or component count.

Bits per pixel.

Trait Implementations

The type used for the args parameter of read_args() and read_options(). Read more
Read Self from the reader using the given ReadOptions and arguments. Read more
Read Self from the reader using the given arguments.
Runs any post-processing steps required to finalize construction of the object. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.