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.
Provide the base level and whether mipmaps should be generated.
Levels(&'a [&'a T])
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.
Get the base level texels.