pub struct EnableExtensions {
    dual_source_blending: bool,
    f16: bool,
    clip_distances: bool,
}Expand description
Tracks the status of every enable-extension known to Naga.
Fields§
§dual_source_blending: bool§f16: boolWhether enable f16; was written earlier in the shader module.
clip_distances: boolImplementations§
Source§impl EnableExtensions
 
impl EnableExtensions
pub(crate) const fn empty() -> Self
Sourcepub(crate) fn add(&mut self, ext: ImplementedEnableExtension)
 
pub(crate) fn add(&mut self, ext: ImplementedEnableExtension)
Add an enable-extension to the set requested by a module.
Sourcepub(crate) const fn contains(&self, ext: ImplementedEnableExtension) -> bool
 
pub(crate) const fn contains(&self, ext: ImplementedEnableExtension) -> bool
Query whether an enable-extension tracked here has been requested.
Trait Implementations§
Source§impl Clone for EnableExtensions
 
impl Clone for EnableExtensions
Source§fn clone(&self) -> EnableExtensions
 
fn clone(&self) -> EnableExtensions
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 EnableExtensions
 
impl Debug for EnableExtensions
Source§impl Default for EnableExtensions
 
impl Default for EnableExtensions
Source§impl PartialEq for EnableExtensions
 
impl PartialEq for EnableExtensions
impl Eq for EnableExtensions
impl StructuralPartialEq for EnableExtensions
Auto Trait Implementations§
impl Freeze for EnableExtensions
impl RefUnwindSafe for EnableExtensions
impl Send for EnableExtensions
impl Sync for EnableExtensions
impl Unpin for EnableExtensions
impl UnwindSafe for EnableExtensions
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.