#[repr(i32)]pub enum WGPUTextureSampleType {
BindingNotUsed = 0,
Undefined = 1,
Float = 2,
UnfilterableFloat = 3,
Depth = 4,
Sint = 5,
Uint = 6,
}Variants§
Implementations§
Source§impl WGPUTextureSampleType
impl WGPUTextureSampleType
Sourcepub const fn is_binding_not_used(&self) -> bool
pub const fn is_binding_not_used(&self) -> bool
Returns true if the enum is WGPUTextureSampleType::BindingNotUsed otherwise false
Sourcepub const fn is_undefined(&self) -> bool
pub const fn is_undefined(&self) -> bool
Returns true if the enum is WGPUTextureSampleType::Undefined otherwise false
Sourcepub const fn is_float(&self) -> bool
pub const fn is_float(&self) -> bool
Returns true if the enum is WGPUTextureSampleType::Float otherwise false
Sourcepub const fn is_unfilterable_float(&self) -> bool
pub const fn is_unfilterable_float(&self) -> bool
Returns true if the enum is WGPUTextureSampleType::UnfilterableFloat otherwise false
Sourcepub const fn is_depth(&self) -> bool
pub const fn is_depth(&self) -> bool
Returns true if the enum is WGPUTextureSampleType::Depth otherwise false
Trait Implementations§
Source§impl Clone for WGPUTextureSampleType
impl Clone for WGPUTextureSampleType
Source§fn clone(&self) -> WGPUTextureSampleType
fn clone(&self) -> WGPUTextureSampleType
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 Debug for WGPUTextureSampleType
impl Debug for WGPUTextureSampleType
Source§impl Display for WGPUTextureSampleType
impl Display for WGPUTextureSampleType
Source§impl<'_derivative_strum> From<&'_derivative_strum WGPUTextureSampleType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum WGPUTextureSampleType> for &'static str
Source§fn from(x: &'_derivative_strum WGPUTextureSampleType) -> &'static str
fn from(x: &'_derivative_strum WGPUTextureSampleType) -> &'static str
Converts to this type from the input type.
Source§impl From<WGPUTextureSampleType> for &'static str
impl From<WGPUTextureSampleType> for &'static str
Source§fn from(x: WGPUTextureSampleType) -> &'static str
fn from(x: WGPUTextureSampleType) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for WGPUTextureSampleType
impl FromStr for WGPUTextureSampleType
Source§impl Hash for WGPUTextureSampleType
impl Hash for WGPUTextureSampleType
Source§impl PartialEq for WGPUTextureSampleType
impl PartialEq for WGPUTextureSampleType
Source§impl TryFrom<&str> for WGPUTextureSampleType
impl TryFrom<&str> for WGPUTextureSampleType
impl Copy for WGPUTextureSampleType
impl Eq for WGPUTextureSampleType
impl StructuralPartialEq for WGPUTextureSampleType
Auto Trait Implementations§
impl Freeze for WGPUTextureSampleType
impl RefUnwindSafe for WGPUTextureSampleType
impl Send for WGPUTextureSampleType
impl Sync for WGPUTextureSampleType
impl Unpin for WGPUTextureSampleType
impl UnwindSafe for WGPUTextureSampleType
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