[][src]Struct nobs_vk::Core

pub struct Core { /* fields omitted */ }

Vulkan core commands

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

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

Methods

impl Core[src]

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

Initialized core commands for the newest available vulkan version

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

is the same as

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

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

Initialized core 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 Drop for Core[src]

impl Default for Core[src]

fn default() -> Core[src]

Initializes all function pointers to functions that immediately panic.

Auto Trait Implementations

impl Send for Core

impl Sync for Core

Blanket Implementations

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

impl<T> From for 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, 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.

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

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