[−]Struct nobs_vulkanism::instance::Instance
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
fn drop(&mut self)
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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,