#[repr(C)]pub struct TiTexture {
pub image: TiImage,
pub sampler: TiSampler,
pub dimension: TiImageDimension,
pub extent: TiImageExtent,
pub format: TiFormat,
}Expand description
Structure TiTexture
Image data bound to a sampler.
Fields§
§image: TiImageImage bound to the texture.
sampler: TiSamplerThe bound sampler that controls the sampling behavior of structure.texture.image.
dimension: TiImageDimensionImage Dimension.
extent: TiImageExtentImage extent.
format: TiFormatImage texel format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TiTexture
impl RefUnwindSafe for TiTexture
impl Send for TiTexture
impl Sync for TiTexture
impl Unpin for TiTexture
impl UnwindSafe for TiTexture
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