pub enum Dim {
Dim1,
Dim2,
Dim3,
Cubemap,
Dim1Array,
Dim2Array,
}
Expand description
Dimension of a texture.
Variants
Dim1
1D.
Dim2
2D.
Dim3
3D.
Cubemap
Cubemap (i.e. a cube defining 6 faces — akin to 4D).
Dim1Array
1D array.
This corresponds to layered 1D textures, i.e. a 1D texture with an extra parameter to tap into the corresponding
layer. Using in a Texture
allows to perform layered rendering.
Dim2Array
2D array.
This corresponds to layered 2D textures, i.e. a 2D texture with an extra parameter to tap into the corresponding
layer. Using in a Texture
allows to perform layered rendering.
Trait Implementations
impl Copy for Dim
impl Eq for Dim
impl StructuralEq for Dim
impl StructuralPartialEq for Dim
Auto Trait Implementations
impl RefUnwindSafe for Dim
impl Send for Dim
impl Sync for Dim
impl Unpin for Dim
impl UnwindSafe for Dim
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more