pub struct Config<D = BasicDevicesConfigure, H = BasicHeapsConfigure, Q = OneGraphicsQueue> {
pub devices: D,
pub heaps: H,
pub queues: Q,
}
Expand description
Factory initialization config.
devices
- DeviceConfigure
implementation instance to pick physical device.
BasicDevicesConfigure
can be used as sane default.
heaps
- HeapsConfigure
implementation instance to cofigure memory allocators.
BasicHeapsConfigure
can be used as sane default.
queues
- QueuesConfigure
implementation to configure device queues creation.
OneGraphicsQueue
can be used if only one graphics queue will satisfy requirements.
Fields§
§devices: D
Config to choose adapter.
heaps: H
Config for memory::Heaps.
queues: Q
Config for queue families.
Trait Implementations§
Auto Trait Implementations§
impl<D, H, Q> Freeze for Config<D, H, Q>
impl<D, H, Q> RefUnwindSafe for Config<D, H, Q>
impl<D, H, Q> Send for Config<D, H, Q>
impl<D, H, Q> Sync for Config<D, H, Q>
impl<D, H, Q> Unpin for Config<D, H, Q>
impl<D, H, Q> UnwindSafe for Config<D, H, Q>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)