Struct erupt::EntryLoader[][src]

pub struct EntryLoader<T> {
    pub loader: T,
    pub get_instance_proc_addr: PFN_vkGetInstanceProcAddr,
    pub create_instance: Option<PFN_vkCreateInstance>,
    pub enumerate_instance_version: Option<PFN_vkEnumerateInstanceVersion>,
    pub enumerate_instance_layer_properties: Option<PFN_vkEnumerateInstanceLayerProperties>,
    pub enumerate_instance_extension_properties: Option<PFN_vkEnumerateInstanceExtensionProperties>,
    // some fields omitted
}

Loader for entry commands

To create a new loader, call EntryLoader::new.

Fields

loader: Tget_instance_proc_addr: PFN_vkGetInstanceProcAddrcreate_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]

Vulkan Manual Page · Function

pub unsafe fn enumerate_instance_layer_properties(
    &self,
    property_count: Option<u32>
) -> VulkanResult<Vec<LayerProperties>>
[src]

Vulkan Manual Page · Function

pub unsafe fn enumerate_instance_extension_properties(
    &self,
    layer_name: Option<&CStr>,
    property_count: Option<u32>
) -> VulkanResult<Vec<ExtensionProperties>>
[src]

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]

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]

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]

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

impl<T> Send for EntryLoader<T> where
    T: Send

impl<T> Sync for EntryLoader<T> where
    T: Sync

impl<T> Unpin for EntryLoader<T> where
    T: Unpin

impl<T> UnwindSafe for EntryLoader<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.