[−][src]Struct ash::EntryCustom
Function loader
Implementations
impl<L> EntryCustom<L>
[src][−]
pub fn new_custom<Load>(lib: L, load: Load) -> Self where
Load: FnMut(&mut L, &CStr) -> *const c_void,
[src]
Load: FnMut(&mut L, &CStr) -> *const c_void,
pub fn try_enumerate_instance_version(&self) -> VkResult<Option<u32>>
[src][−]
let entry = Entry::new()?; match entry.try_enumerate_instance_version()? { // Vulkan 1.1+ Some(version) => { let major = vk::version_major(version); let minor = vk::version_minor(version); let patch = vk::version_patch(version); }, // Vulkan 1.0 None => {}, }
impl EntryCustom<Arc<Library>>
[src][−]
pub fn new() -> Result<Entry, LoadingError>
[src][−]
use ash::{vk, Entry, version::EntryV1_0}; let entry = Entry::new()?; let app_info = vk::ApplicationInfo { api_version: vk::make_version(1, 0, 0), ..Default::default() }; let create_info = vk::InstanceCreateInfo { p_application_info: &app_info, ..Default::default() }; let instance = unsafe { entry.create_instance(&create_info, None)? };
Trait Implementations
impl<L: Clone> Clone for EntryCustom<L>
[src][+]
impl<L> EntryV1_0 for EntryCustom<L>
[src][+]
impl<L> EntryV1_1 for EntryCustom<L>
[src][+]
impl<L> EntryV1_2 for EntryCustom<L>
[src][+]
Auto Trait Implementations
impl<L> RefUnwindSafe for EntryCustom<L> where
L: RefUnwindSafe,
L: RefUnwindSafe,
impl<L> Send for EntryCustom<L> where
L: Send,
L: Send,
impl<L> Sync for EntryCustom<L> where
L: Sync,
L: Sync,
impl<L> Unpin for EntryCustom<L> where
L: Unpin,
L: Unpin,
impl<L> UnwindSafe for EntryCustom<L> where
L: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,