#[repr(i32)]pub enum WGPUBackendType {
Undefined = 0,
Null = 1,
WebGPU = 2,
D3D11 = 3,
D3D12 = 4,
Metal = 5,
Vulkan = 6,
OpenGL = 7,
OpenGLES = 8,
}Variants§
Implementations§
Source§impl WGPUBackendType
impl WGPUBackendType
Sourcepub const fn is_undefined(&self) -> bool
pub const fn is_undefined(&self) -> bool
Returns true if the enum is WGPUBackendType::Undefined otherwise false
Sourcepub const fn is_null(&self) -> bool
pub const fn is_null(&self) -> bool
Returns true if the enum is WGPUBackendType::Null otherwise false
Sourcepub const fn is_web_gpu(&self) -> bool
pub const fn is_web_gpu(&self) -> bool
Returns true if the enum is WGPUBackendType::WebGPU otherwise false
Sourcepub const fn is_d_3d_11(&self) -> bool
pub const fn is_d_3d_11(&self) -> bool
Returns true if the enum is WGPUBackendType::D3D11 otherwise false
Sourcepub const fn is_d_3d_12(&self) -> bool
pub const fn is_d_3d_12(&self) -> bool
Returns true if the enum is WGPUBackendType::D3D12 otherwise false
Sourcepub const fn is_metal(&self) -> bool
pub const fn is_metal(&self) -> bool
Returns true if the enum is WGPUBackendType::Metal otherwise false
Sourcepub const fn is_vulkan(&self) -> bool
pub const fn is_vulkan(&self) -> bool
Returns true if the enum is WGPUBackendType::Vulkan otherwise false
Sourcepub const fn is_open_gl(&self) -> bool
pub const fn is_open_gl(&self) -> bool
Returns true if the enum is WGPUBackendType::OpenGL otherwise false
Sourcepub const fn is_open_gles(&self) -> bool
pub const fn is_open_gles(&self) -> bool
Returns true if the enum is WGPUBackendType::OpenGLES otherwise false
Trait Implementations§
Source§impl Clone for WGPUBackendType
impl Clone for WGPUBackendType
Source§fn clone(&self) -> WGPUBackendType
fn clone(&self) -> WGPUBackendType
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 WGPUBackendType
impl Debug for WGPUBackendType
Source§impl Display for WGPUBackendType
impl Display for WGPUBackendType
Source§impl<'_derivative_strum> From<&'_derivative_strum WGPUBackendType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum WGPUBackendType> for &'static str
Source§fn from(x: &'_derivative_strum WGPUBackendType) -> &'static str
fn from(x: &'_derivative_strum WGPUBackendType) -> &'static str
Converts to this type from the input type.
Source§impl From<WGPUBackendType> for &'static str
impl From<WGPUBackendType> for &'static str
Source§fn from(x: WGPUBackendType) -> &'static str
fn from(x: WGPUBackendType) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for WGPUBackendType
impl FromStr for WGPUBackendType
Source§impl Hash for WGPUBackendType
impl Hash for WGPUBackendType
Source§impl IntoEnumIterator for WGPUBackendType
impl IntoEnumIterator for WGPUBackendType
type Iterator = WGPUBackendTypeIter
fn iter() -> WGPUBackendTypeIter ⓘ
Source§impl PartialEq for WGPUBackendType
impl PartialEq for WGPUBackendType
Source§impl TryFrom<&str> for WGPUBackendType
impl TryFrom<&str> for WGPUBackendType
impl Copy for WGPUBackendType
impl Eq for WGPUBackendType
impl StructuralPartialEq for WGPUBackendType
Auto Trait Implementations§
impl Freeze for WGPUBackendType
impl RefUnwindSafe for WGPUBackendType
impl Send for WGPUBackendType
impl Sync for WGPUBackendType
impl Unpin for WGPUBackendType
impl UnwindSafe for WGPUBackendType
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