pub struct Texture { /* private fields */ }
Available on crate feature tex only.
Expand description

A texture and associated metadata.

Implementations

Byte array of pixel data.

Pixel data format.

Width in pixels.

Height in pixels.

Depth. Unknown interpretation.

Mipmap level count.

Dimension kind.

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
Formats the value using the given formatter. Read more
Build an instance of this file from the raw byte representation.

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 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.