[][src]Struct nobs_vk::VkLib

pub struct VkLib { /* fields omitted */ }

Vulkan library initialization struct

This struct is used to initialize vulkan commands and holds function pointers to them. Function pointers are initialized during construction.

After successfull instantiation the global vulkan functions are ready to use. There must always be only a single instance maximum of this struct.

Methods

impl VkLib[src]

pub fn new() -> Box<VkLib>[src]

Initializes commands for the newest available vulkan version

let vk_lib = nobs_vk::VkLib::new();

is the same as

let vk_lib = nobs_vk::VkLib::with_feature(nobs_vk::VERSION_1_1);

pub fn with_feature(feature: u32) -> Box<VkLib>[src]

Initializes commands for the specified vulkan feature

Select a feature either with the predefined constants VERSION_x_x, or use the make_version macro

pub fn get_feature(&self) -> u32[src]

Gets the feature level with which vulkan was initialized

The fature is formatted as described in make_version.

Trait Implementations

impl Default for VkLib[src]

fn default() -> VkLib[src]

Initializes all function pointers to functions that immediately panic.

impl Drop for VkLib[src]

Auto Trait Implementations

impl Send for VkLib

impl Sync for VkLib

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.