Struct wgpu_types::DeviceDescriptor [−][src]
Describes a [Device].
Fields
label: LDebug label for the device.
features: FeaturesFeatures that the device should support. If any feature is not supported by the adapter, creating a device will panic.
limits: LimitsLimits that the device should support. If any limit is "better" than the limit exposed by the adapter, creating a device will panic.
Implementations
impl<L> DeviceDescriptor<L>[src]
pub fn map_label<K>(&self, fun: impl FnOnce(&L) -> K) -> DeviceDescriptor<K>[src]
Trait Implementations
impl<L: Clone> Clone for DeviceDescriptor<L>[src]
fn clone(&self) -> DeviceDescriptor<L>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<L: Debug> Debug for DeviceDescriptor<L>[src]
impl<L: Default> Default for DeviceDescriptor<L>[src]
fn default() -> DeviceDescriptor<L>[src]
Auto Trait Implementations
impl<L> RefUnwindSafe for DeviceDescriptor<L> where
L: RefUnwindSafe, [src]
L: RefUnwindSafe,
impl<L> Send for DeviceDescriptor<L> where
L: Send, [src]
L: Send,
impl<L> Sync for DeviceDescriptor<L> where
L: Sync, [src]
L: Sync,
impl<L> Unpin for DeviceDescriptor<L> where
L: Unpin, [src]
L: Unpin,
impl<L> UnwindSafe for DeviceDescriptor<L> where
L: UnwindSafe, [src]
L: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,