Struct pilka_dyn::ash::VkInstance[]

pub struct VkInstance {
    pub entry: EntryCustom<Arc<Library>>,
    pub instance: Instance,
    // some fields omitted
}

The entry point for vulkan application.

Fields

entry: EntryCustom<Arc<Library>>instance: Instance

Implementations

impl VkInstance

pub fn new(
    validation_layers: &[&str],
    extention_names: &[&CStr]
) -> Result<VkInstance, Box<dyn Error + 'static, Global>>

pub fn create_surface<W>(&self, window: &W) -> Result<VkSurface, Result> where
    W: HasRawWindowHandle

Make surface and surface loader.

pub fn create_device_and_queues(
    &self,
    surface: Option<&VkSurface>
) -> Result<(VkDevice, VkDeviceProperties, VkQueues), Result>

pub fn create_swapchain_loader(&self, device: &VkDevice) -> Swapchain

Methods from Deref<Target = Instance>

Trait Implementations

impl Deref for VkInstance

type Target = Instance

The resulting type after dereferencing.

impl DerefMut for VkInstance

impl Drop for VkInstance

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, 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.