pub struct CustomEntryLoader<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>,
    /* private fields */
}
Expand description

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

Provided by crate::vk1_0

Vulkan Manual Page · Function

Vulkan Manual Page · Function

Vulkan Manual Page · Function

Provided by crate::vk1_1

Load functions using libloading.

Enabled using the loading cargo feature.

For more advanced use cases, take a look at EntryLoader::with_lib_path and EntryLoader::with_library.

Load functions using libloading providing a custom library path.

Enabled using the loading cargo feature.

Creates a entry loader with a custom library used for loading.

Access enabled requirements of this entry loader.

This will be the result of vkEnumerateInstanceVersion if available, otherwise 0.1.0.0.

Trait Implementations

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.