Struct vulkano::instance::loader::DynamicLibraryLoader
source · 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
sourceimpl Loader for DynamicLibraryLoader
impl Loader for DynamicLibraryLoader
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.