[][src]Struct nobs_vulkanism_headless::instance::Instance

pub struct Instance {
    pub handle: u64,
    // some fields omitted
}

Wrapps the core library with an instance

Manages a vulkan instance with an optional debug callback for validation layers

The Instance will take ownership of the VkLib:

  • there is no need to ever have multiple vulkan instances in the same process.
  • the Instance and vulkan core library should go out of scope simultanously.

Create and conveniently configure an Instance with the instance builder

Fields

handle: u64

The actual vulkan instance handle

Trait Implementations

impl Drop for Instance[src]

fn drop(&mut self)[src]

Cleans up the Instance

If the instance was created with validation layers cleans up the debug callback. Destroys the instance handle.

After the instance is dropped, all vulkan commands will panic

Auto Trait Implementations

impl Send for Instance

impl Sync for Instance

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 = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.