Struct grr::Image

source ·
pub struct Image { /* private fields */ }
Expand description

Image resource handle.

Images ares multidimensional, formatted data arrays. Images are, together with buffers, resources and are typed representations of a memory slice.

Images are often also called textures. We only denote with an image the actual storage of the data, meaning the memory with the associated layout metadata.

The API only uses images directly when the function call affects the underlying memory (e.g copy operations).

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.