Struct erupt::EntryLoader [−][src]
Loader for entry commands
To create a new loader, call EntryLoader::new
.
Fields
loader: T
get_instance_proc_addr: PFN_vkGetInstanceProcAddr
create_instance: Option<PFN_vkCreateInstance>
enumerate_instance_version: Option<PFN_vkEnumerateInstanceVersion>
enumerate_instance_layer_properties: Option<PFN_vkEnumerateInstanceLayerProperties>
enumerate_instance_extension_properties: Option<PFN_vkEnumerateInstanceExtensionProperties>
Implementations
impl<T> EntryLoader<T>
[src]
Provided by crate::vk1_0
pub unsafe fn create_instance(
&self,
create_info: &InstanceCreateInfo,
allocator: Option<&AllocationCallbacks>,
instance: Option<Instance>
) -> VulkanResult<Instance>
[src]
&self,
create_info: &InstanceCreateInfo,
allocator: Option<&AllocationCallbacks>,
instance: Option<Instance>
) -> VulkanResult<Instance>
Vulkan Manual Page · Function
pub unsafe fn enumerate_instance_layer_properties(
&self,
property_count: Option<u32>
) -> VulkanResult<Vec<LayerProperties>>
[src]
&self,
property_count: Option<u32>
) -> VulkanResult<Vec<LayerProperties>>
Vulkan Manual Page · Function
pub unsafe fn enumerate_instance_extension_properties(
&self,
layer_name: Option<&CStr>,
property_count: Option<u32>
) -> VulkanResult<Vec<ExtensionProperties>>
[src]
&self,
layer_name: Option<&CStr>,
property_count: Option<u32>
) -> VulkanResult<Vec<ExtensionProperties>>
Vulkan Manual Page · Function
impl<T> EntryLoader<T>
[src]
Provided by crate::vk1_1
pub unsafe fn enumerate_instance_version(
&self,
api_version: Option<u32>
) -> VulkanResult<u32>
[src]
&self,
api_version: Option<u32>
) -> VulkanResult<u32>
Vulkan Manual Page · Function
impl<T> EntryLoader<T>
[src]
pub unsafe fn custom(
loader: T,
symbol: impl FnMut(&mut T, *const c_char) -> Option<PFN_vkVoidFunction>,
entry_enabled: EntryEnabled
) -> Result<EntryLoader<T>, LoaderError>
[src]
loader: T,
symbol: impl FnMut(&mut T, *const c_char) -> Option<PFN_vkVoidFunction>,
entry_enabled: EntryEnabled
) -> Result<EntryLoader<T>, LoaderError>
pub fn enabled(&self) -> &EntryEnabled
[src]
pub fn instance_version(&self) -> u32
[src]
impl EntryLoader<Library>
[src]
pub fn new() -> Result<DefaultEntryLoader, EntryLoaderError>
[src]
Load functions using libloading
Enabled using the loading
cargo feature
pub fn with_lib_path<P: AsRef<OsStr>>(
lib_path: P
) -> Result<DefaultEntryLoader, EntryLoaderError>
[src]
lib_path: P
) -> Result<DefaultEntryLoader, EntryLoaderError>
Load functions using libloading
providing a custom library path
Enabled using the loading
cargo feature
Trait Implementations
impl<T> Debug for EntryLoader<T>
[src]
impl<T> Drop for EntryLoader<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for EntryLoader<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for EntryLoader<T> where
T: Send,
T: Send,
impl<T> Sync for EntryLoader<T> where
T: Sync,
T: Sync,
impl<T> Unpin for EntryLoader<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for EntryLoader<T> where
T: UnwindSafe,
T: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,