[−][src]Struct nobs_vk::Core
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
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 = !
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, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,