[−][src]Struct nobs_vk::VkLib
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
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>,