pub enum TextureDim {
D1,
D2,
D3,
Cube,
}Expand description
The dimensionality of a texture or image. Whether it is an array or multisampled is separate.
Variants§
D1
A one-dimensional texture or image.
D2
A two-dimensional texture or image.
D3
A three-dimensional (volume) texture or image.
Cube
A cube map (six faces, sampled by direction).
Implementations§
Source§impl TextureDim
impl TextureDim
Sourcepub fn state_code(self) -> u32
pub fn state_code(self) -> u32
The value StateParam::TextureDim reads for this dimension: 1, 2 and 3 for 1D, 2D and volume, 4 for a cube.
Trait Implementations§
Source§impl Clone for TextureDim
impl Clone for TextureDim
Source§fn clone(&self) -> TextureDim
fn clone(&self) -> TextureDim
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 moreimpl Copy for TextureDim
Source§impl Debug for TextureDim
impl Debug for TextureDim
impl Eq for TextureDim
Source§impl Hash for TextureDim
impl Hash for TextureDim
Source§impl Ord for TextureDim
impl Ord for TextureDim
Source§fn cmp(&self, other: &TextureDim) -> Ordering
fn cmp(&self, other: &TextureDim) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TextureDim
impl PartialEq for TextureDim
Source§impl PartialOrd for TextureDim
impl PartialOrd for TextureDim
Source§impl Serialize for TextureDim
impl Serialize for TextureDim
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TextureDim
Auto Trait Implementations§
impl Forget for TextureDim
impl Freeze for TextureDim
impl RefUnwindSafe for TextureDim
impl Send for TextureDim
impl Sync for TextureDim
impl Unpin for TextureDim
impl UnsafeUnpin for TextureDim
impl UnwindSafe for TextureDim
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