Struct asche::Instance[][src]

pub struct Instance {
    pub raw: InstanceLoader,
    // some fields omitted
}

Initializes the all Vulkan resources needed to create a device.

Fields

raw: InstanceLoader

The raw Vulkan instance.

Implementations

impl Instance[src]

pub fn new(
    window_handle: &impl HasRawWindowHandle,
    configuration: InstanceConfiguration<'_>
) -> Result<Instance, AscheError>
[src]

Creates a new Instance.

pub fn request_device(
    self,
    device_configuration: DeviceConfiguration<'_>
) -> Result<(Device, Swapchain, Queues), AscheError>
[src]

Requests a new Vulkan device. Returns a device, a swapchain and the queues created.

Trait Implementations

impl Debug for Instance[src]

impl Drop for Instance[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.