Struct ktxTexture

Source
#[repr(C)]
pub struct ktxTexture {
Show 21 fields pub classId: class_id, pub vtbl: *mut ktxTexture_vtbl, pub vvtbl: *mut ktxTexture_vvtbl, pub _protected: *mut ktxTexture_protected, pub isArray: ktx_bool_t, pub isCubemap: ktx_bool_t, pub isCompressed: ktx_bool_t, pub generateMipmaps: ktx_bool_t, pub baseWidth: ktx_uint32_t, pub baseHeight: ktx_uint32_t, pub baseDepth: ktx_uint32_t, pub numDimensions: ktx_uint32_t, pub numLevels: ktx_uint32_t, pub numLayers: ktx_uint32_t, pub numFaces: ktx_uint32_t, pub orientation: ktxOrientation, pub kvDataHead: ktxHashList, pub kvDataLen: ktx_uint32_t, pub kvData: *mut ktx_uint8_t, pub dataSize: ktx_size_t, pub pData: *mut ktx_uint8_t,
}
Expand description

@class ktxTexture @~English @brief Base class representing a texture.

ktxTextures should be created only by one of the provided functions and these fields should be considered read-only.

Fields§

§classId: class_id§vtbl: *mut ktxTexture_vtbl§vvtbl: *mut ktxTexture_vvtbl§_protected: *mut ktxTexture_protected§isArray: ktx_bool_t§isCubemap: ktx_bool_t§isCompressed: ktx_bool_t§generateMipmaps: ktx_bool_t§baseWidth: ktx_uint32_t§baseHeight: ktx_uint32_t§baseDepth: ktx_uint32_t§numDimensions: ktx_uint32_t§numLevels: ktx_uint32_t§numLayers: ktx_uint32_t§numFaces: ktx_uint32_t§orientation: ktxOrientation§kvDataHead: ktxHashList§kvDataLen: ktx_uint32_t§kvData: *mut ktx_uint8_t§dataSize: ktx_size_t§pData: *mut ktx_uint8_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.