Enum spirv_std::image::ImageDepth
source · #[repr(u32)]pub enum ImageDepth {
False = 0,
True = 1,
Unknown = 2,
}
Expand description
Whether a given image contains depth information. Note Whether or not to perform depth comparisons is a property of the sampling code, not of this type.
Variants§
False = 0
Indicates that the image does not contain depth information.
True = 1
Indicates that the image contains depth information.
Unknown = 2
Indicates that is not known ahead of time whether the image has depth information or not.
Trait Implementations§
source§impl Clone for ImageDepth
impl Clone for ImageDepth
source§fn clone(&self) -> ImageDepth
fn clone(&self) -> ImageDepth
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<bool> for ImageDepth
impl From<bool> for ImageDepth
source§fn from(val: bool) -> ImageDepth
fn from(val: bool) -> ImageDepth
Converts to this type from the input type.
source§impl PartialEq for ImageDepth
impl PartialEq for ImageDepth
source§fn eq(&self, other: &ImageDepth) -> bool
fn eq(&self, other: &ImageDepth) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ImageDepth
impl Eq for ImageDepth
impl StructuralPartialEq for ImageDepth
Auto Trait Implementations§
impl Freeze for ImageDepth
impl RefUnwindSafe for ImageDepth
impl Send for ImageDepth
impl Sync for ImageDepth
impl Unpin for ImageDepth
impl UnwindSafe for ImageDepth
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