pub struct DeviceDesc {
pub power: PowerPreference,
pub resource_memory_limit_bytes: Option<u64>,
}Expand description
Options for opening a device.
Fields§
§power: PowerPreferenceAdapter preference.
resource_memory_limit_bytes: Option<u64>Optional hard ceiling for live buffer and texture bytes owned by the device.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceDesc
impl RefUnwindSafe for DeviceDesc
impl Send for DeviceDesc
impl Sync for DeviceDesc
impl Unpin for DeviceDesc
impl UnsafeUnpin for DeviceDesc
impl UnwindSafe for DeviceDesc
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