Struct erupt::InstanceLoaderBuilder
source · [−]pub struct InstanceLoaderBuilder<'a> { /* private fields */ }
Expand description
Builder for an instance loader.
Implementations
pub fn create_instance_fn(
self,
create_instance: Box<dyn FnOnce(&InstanceCreateInfo, Option<&AllocationCallbacks>) -> VulkanResult<Instance>>
) -> Self
pub fn create_instance_fn(
self,
create_instance: Box<dyn FnOnce(&InstanceCreateInfo, Option<&AllocationCallbacks>) -> VulkanResult<Instance>>
) -> Self
Specify a custom instance creation function, to use in place of the default.
This may be useful when creating the instance using e.g. OpenXR.
Specify a custom symbol function, called to get instance function pointers, to use in place of the default.
Specify custom allocation callback functions.
pub unsafe fn build<T>(
self,
entry_loader: &'a CustomEntryLoader<T>,
create_info: &InstanceCreateInfo
) -> Result<InstanceLoader, LoaderError>
pub unsafe fn build<T>(
self,
entry_loader: &'a CustomEntryLoader<T>,
create_info: &InstanceCreateInfo
) -> Result<InstanceLoader, LoaderError>
Create an instance loader.