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: Mappingtexture.mapping.
color_space: ColorSpacetexture.colorSpace.
texture_type: TextureTypeTexture.type — UnsignedByteType for a PNG cube, HalfFloatType for
the one HDRCubeTextureLoader builds.
flip_y: boolCubeTexture 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: boolTexture.generateMipmaps, true by default.
anisotropy: u16Texture.anisotropy.
mag_filter: TextureFiltertexture.magFilter.
min_filter: MinFiltertexture.minFilter.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CubeTextureInner
impl !UnwindSafe for CubeTextureInner
impl Freeze for CubeTextureInner
impl Send for CubeTextureInner
impl Sync for CubeTextureInner
impl Unpin for CubeTextureInner
impl UnsafeUnpin for CubeTextureInner
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