pub struct DynamicLibraryLoader { /* private fields */ }Expand description
Implementation of Loader that loads Vulkan from a dynamic library.
Implementations§
Source§impl DynamicLibraryLoader
impl DynamicLibraryLoader
Sourcepub unsafe fn new(
path: impl AsRef<Path>,
) -> Result<DynamicLibraryLoader, LoadingError>
pub unsafe fn new( path: impl AsRef<Path>, ) -> Result<DynamicLibraryLoader, LoadingError>
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 Freeze for DynamicLibraryLoader
impl RefUnwindSafe for DynamicLibraryLoader
impl Send for DynamicLibraryLoader
impl Sync for DynamicLibraryLoader
impl Unpin for DynamicLibraryLoader
impl UnwindSafe for DynamicLibraryLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more