Enum luminance::texture::TexelUpload[][src]

pub enum TexelUpload<'a, T> where
    T: ?Sized
{ BaseLevel { texels: &'a T, mipmaps: Option<usize>, }, Levels(&'a [&'a T]), }
Expand description

Texel upload.

You have the choice between different options regarding mipmaps.:

  • You can upload texels and let mipmaps being automatically created for you.
  • You can upload texels and disable mipmap creation.
  • You can upload texels by manually providing all the mipmap levels.

Variants

BaseLevel

Fields

texels: &'a T

Texels list to upload.

mipmaps: Option<usize>

Whether mipmap levels should be automatically created.

Provide the base level and whether mipmaps should be generated.

Levels(&'a [&'a T])

Tuple Fields

Provide all the levels at once.

The number of elements in the outer slice represents the number of mipmaps; each inner slice represents the texels to be uploaded to the mipmap level.

Implementations

Create a texel upload for the base level of a texture and let mipmap levels be automatically created.

Create a texel upload for the base level of a texture without mipmap levels.

Create a texel upload by manually providing all base + mipmap levels.

Number of mipmaps.

Get the base level texels.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.