pub struct TextureCube<T: ?Sized> {
pub dimensions: Vec2<NonZeroU32>,
pub mip_levels: NonZeroU32,
pub data: T,
}Expand description
Cubemap texture object.
Use this type to satisfy a texture binding in a resource struct,
when the binding has WGSL type texture_cube.
Fields§
§dimensions: Vec2<NonZeroU32>§mip_levels: NonZeroU32§data: TTrait Implementations§
Source§impl<T: Clone + ?Sized> Clone for TextureCube<T>
impl<T: Clone + ?Sized> Clone for TextureCube<T>
Source§fn clone(&self) -> TextureCube<T>
fn clone(&self) -> TextureCube<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: PartialEq + ?Sized> PartialEq for TextureCube<T>
impl<T: PartialEq + ?Sized> PartialEq for TextureCube<T>
Source§fn eq(&self, other: &TextureCube<T>) -> bool
fn eq(&self, other: &TextureCube<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T: ?Sized + Read> Query for TextureCube<T>
impl<T: ?Sized + Read> Query for TextureCube<T>
Source§fn base_dimensions(&self) -> Self::Dimensions
fn base_dimensions(&self) -> Self::Dimensions
Returns the dimensions of mip level 0 of the texture.
Source§fn mip_levels(&self) -> NonZeroU32
fn mip_levels(&self) -> NonZeroU32
Returns the count of mip levels of the texture.
Source§fn array_layers(&self) -> NonZeroU32
fn array_layers(&self) -> NonZeroU32
Returns the count of array layers of the texture. Read more
Source§fn samples(&self) -> NonZeroU32
fn samples(&self) -> NonZeroU32
Returns the count of samples of the texture. Read more
Source§impl<T: ?Sized + Read> Read for TextureCube<T>
impl<T: ?Sized + Read> Read for TextureCube<T>
type Coordinates = <T as Read>::Coordinates
type Component = <T as Read>::Component
Source§fn read_texel(
&self,
coordinates: Self::Coordinates,
array_layer: i32,
sample: i32,
mip_level: i32,
) -> Vec4<Self::Component>
fn read_texel( &self, coordinates: Self::Coordinates, array_layer: i32, sample: i32, mip_level: i32, ) -> Vec4<Self::Component>
Loads a single texel from the texture. Read more
impl<T: Copy + ?Sized> Copy for TextureCube<T>
impl<T: Eq + ?Sized> Eq for TextureCube<T>
impl<T: ?Sized> StructuralPartialEq for TextureCube<T>
Auto Trait Implementations§
impl<T> Freeze for TextureCube<T>
impl<T> RefUnwindSafe for TextureCube<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for TextureCube<T>
impl<T> Sync for TextureCube<T>
impl<T> Unpin for TextureCube<T>
impl<T> UnsafeUnpin for TextureCube<T>where
T: UnsafeUnpin + ?Sized,
impl<T> UnwindSafe for TextureCube<T>where
T: UnwindSafe + ?Sized,
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