#[repr(i32)]pub enum BasisTextureType {
TextureType2D = 0,
TextureType2DArray = 1,
TextureTypeCubemapArray = 2,
TextureTypeVideoFrames = 3,
TextureTypeVolume = 4,
}
Expand description
The type of data stored
Variants§
TextureType2D = 0
An arbitrary array of 2D RGB or RGBA images with optional mipmaps, array size = # images, each image may have a different resolution and # of mipmap levels
TextureType2DArray = 1
An array of 2D RGB or RGBA images with optional mipmaps, array size = # images, each image has the same resolution and mipmap levels
TextureTypeCubemapArray = 2
an array of cubemap levels, total # of images must be divisable by 6, in X+, X-, Y+, Y-, Z+, Z- order, with optional mipmaps
TextureTypeVideoFrames = 3
An array of 2D video frames, with optional mipmaps, # frames = # images, each image has the same resolution and # of mipmap levels
TextureTypeVolume = 4
A 3D texture with optional mipmaps, Z dimension = # images, each image has the same resolution and # of mipmap levels
Implementations§
Source§impl BasisTextureType
impl BasisTextureType
Sourcepub fn texture_type_name(self) -> &'static str
pub fn texture_type_name(self) -> &'static str
Returns the texture type’s name in ASCII.
Trait Implementations§
Source§impl Clone for BasisTextureType
impl Clone for BasisTextureType
Source§fn clone(&self) -> BasisTextureType
fn clone(&self) -> BasisTextureType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BasisTextureType
impl Debug for BasisTextureType
Source§impl From<i32> for BasisTextureType
impl From<i32> for BasisTextureType
Source§fn from(value: basist_basis_texture_type) -> Self
fn from(value: basist_basis_texture_type) -> Self
Converts to this type from the input type.
Source§impl Into<i32> for BasisTextureType
impl Into<i32> for BasisTextureType
Source§fn into(self) -> basist_basis_texture_type
fn into(self) -> basist_basis_texture_type
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for BasisTextureType
impl PartialEq for BasisTextureType
impl Copy for BasisTextureType
impl StructuralPartialEq for BasisTextureType
Auto Trait Implementations§
impl Freeze for BasisTextureType
impl RefUnwindSafe for BasisTextureType
impl Send for BasisTextureType
impl Sync for BasisTextureType
impl Unpin for BasisTextureType
impl UnwindSafe for BasisTextureType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more