pub struct HostDeviceDesc {
pub resource_memory_limit_bytes: Option<u64>,
pub observe_device_errors: bool,
}Expand description
How a host-supplied device is adopted.
Fields§
§resource_memory_limit_bytes: Option<u64>Optional hard ceiling for live buffer and texture bytes the renderer allocates on the host’s device. The host’s own resources are not counted.
observe_device_errors: boolWhether the renderer installs its own asynchronous error and device-loss handlers on the device. Handlers are per device, so installing them replaces the host’s. The default leaves them alone.
Trait Implementations§
Source§impl Clone for HostDeviceDesc
impl Clone for HostDeviceDesc
impl Copy for HostDeviceDesc
Source§impl Debug for HostDeviceDesc
impl Debug for HostDeviceDesc
Auto Trait Implementations§
impl Freeze for HostDeviceDesc
impl RefUnwindSafe for HostDeviceDesc
impl Send for HostDeviceDesc
impl Sync for HostDeviceDesc
impl Unpin for HostDeviceDesc
impl UnsafeUnpin for HostDeviceDesc
impl UnwindSafe for HostDeviceDesc
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