Skip to main content

CubeTextureInner

Struct CubeTextureInner 

Source
pub struct CubeTextureInner {
    pub images: Vec<Image>,
    pub mapping: Mapping,
    pub color_space: ColorSpace,
    pub texture_type: TextureType,
    pub flip_y: bool,
    pub mipmaps: Vec<Vec<Image>>,
    pub generate_mipmaps: bool,
    pub anisotropy: u16,
    pub mag_filter: TextureFilter,
    pub min_filter: MinFilter,
    /* private fields */
}
Expand description

The state behind a CubeTexture handle.

Fields§

§images: Vec<Image>

CubeTexture.images, in the order px, nx, py, ny, pz, nz.

§mapping: Mapping

texture.mapping.

§color_space: ColorSpace

texture.colorSpace.

§texture_type: TextureType

Texture.type — UnsignedByteType for a PNG cube, HalfFloatType for the one HDRCubeTextureLoader builds.

§flip_y: bool

CubeTexture overwrites Texture.flipY with false.

§mipmaps: Vec<Vec<Image>>

Texture.mipmaps. For an uncompressed cube texture three.js uses this array for the mips only — level 0 stays in images — so entry j here is mip level j + 1, and each entry is six faces in the same px, nx, py, ny, pz, nz order as images (WebGPUTextureUtils._copyCubeMapToTexture(), which copies mipmaps[ j ].images[ i ] to mipLevel = j + 1).

§generate_mipmaps: bool

Texture.generateMipmaps, true by default.

§anisotropy: u16

Texture.anisotropy.

§mag_filter: TextureFilter

texture.magFilter.

§min_filter: MinFilter

texture.minFilter.

Trait Implementations§

Source§

impl Debug for CubeTextureInner

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,