pub struct DynamicLibraryLoader { /* private fields */ }
Expand description
Implementation of Loader
that loads Vulkan from a dynamic library.
Implementations
sourceimpl DynamicLibraryLoader
impl DynamicLibraryLoader
sourcepub unsafe fn new<P>(path: P) -> Result<DynamicLibraryLoader, LoadingError> where
P: AsRef<Path>,
pub unsafe fn new<P>(path: P) -> Result<DynamicLibraryLoader, LoadingError> where
P: AsRef<Path>,
Tries to load the dynamic library at the given path, and tries to
load vkGetInstanceProcAddr
in it.
Safety
- The dynamic library must be a valid Vulkan implementation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DynamicLibraryLoader
impl Send for DynamicLibraryLoader
impl Sync for DynamicLibraryLoader
impl Unpin for DynamicLibraryLoader
impl UnwindSafe for DynamicLibraryLoader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more