pub enum EnableExtension {
    Implemented(ImplementedEnableExtension),
    Unimplemented(UnimplementedEnableExtension),
}Expand description
An enable-extension not guaranteed to be present in all environments.
WGSL spec.: https://www.w3.org/TR/WGSL/#enable-extensions-sec
Variants§
Implemented(ImplementedEnableExtension)
Unimplemented(UnimplementedEnableExtension)
Implementations§
Source§impl EnableExtension
 
impl EnableExtension
const F16: &'static str = "f16"
const CLIP_DISTANCES: &'static str = "clip_distances"
const DUAL_SOURCE_BLENDING: &'static str = "dual_source_blending"
const SUBGROUPS: &'static str = "subgroups"
Sourcepub(crate) fn from_ident(word: &str, span: Span) -> Result<Self, Box<Error<'_>>>
 
pub(crate) fn from_ident(word: &str, span: Span) -> Result<Self, Box<Error<'_>>>
Convert from a sentinel word in WGSL into its associated EnableExtension, if possible.
Sourcepub const fn to_ident(self) -> &'static str
 
pub const fn to_ident(self) -> &'static str
Maps this EnableExtension into the sentinel word associated with it in WGSL.
Trait Implementations§
Source§impl Clone for EnableExtension
 
impl Clone for EnableExtension
Source§fn clone(&self) -> EnableExtension
 
fn clone(&self) -> EnableExtension
Returns a duplicate 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 EnableExtension
 
impl Debug for EnableExtension
Source§impl From<ImplementedEnableExtension> for EnableExtension
 
impl From<ImplementedEnableExtension> for EnableExtension
Source§fn from(value: ImplementedEnableExtension) -> Self
 
fn from(value: ImplementedEnableExtension) -> Self
Converts to this type from the input type.
Source§impl Hash for EnableExtension
 
impl Hash for EnableExtension
Source§impl PartialEq for EnableExtension
 
impl PartialEq for EnableExtension
impl Copy for EnableExtension
impl Eq for EnableExtension
impl StructuralPartialEq for EnableExtension
Auto Trait Implementations§
impl Freeze for EnableExtension
impl RefUnwindSafe for EnableExtension
impl Send for EnableExtension
impl Sync for EnableExtension
impl Unpin for EnableExtension
impl UnwindSafe for EnableExtension
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.