pub struct MetalFeatureDetector { /* private fields */ }Expand description
Metal feature set detector.
Implementations§
Source§impl MetalFeatureDetector
impl MetalFeatureDetector
Sourcepub fn new(context: &GpuContext) -> Self
pub fn new(context: &GpuContext) -> Self
Create a new feature detector.
Sourcepub fn features(&self) -> &MetalFeatures
pub fn features(&self) -> &MetalFeatures
Get detected features.
Auto Trait Implementations§
impl Freeze for MetalFeatureDetector
impl RefUnwindSafe for MetalFeatureDetector
impl Send for MetalFeatureDetector
impl Sync for MetalFeatureDetector
impl Unpin for MetalFeatureDetector
impl UnsafeUnpin for MetalFeatureDetector
impl UnwindSafe for MetalFeatureDetector
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