[][src]Struct ohm::factory::Factory

pub struct Factory<B: Backend> {
    pub device: B::Device,
    pub physical_device: B::PhysicalDevice,
    pub queue_group: QueueGroup<B, Graphics>,
    // some fields omitted
}

Dull factory helping with resource allocation.

Fields

device: B::Devicephysical_device: B::PhysicalDevicequeue_group: QueueGroup<B, Graphics>

Methods

impl<B: Backend> Factory<B>[src]

pub fn new(adapter: Adapter<B>) -> Fallible<Factory<B>>[src]

Create a new factory using the specified Adapter. The graphics queue is immediately opened.

Auto Trait Implementations

impl<B> !Send for Factory<B>

impl<B> !Sync for Factory<B>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Supports for T[src]