Struct erupt::InstanceLoaderBuilder
source · pub struct InstanceLoaderBuilder<'a> { /* private fields */ }
Expand description
Builder for an instance loader.
Implementations
sourceimpl<'a> InstanceLoaderBuilder<'a>
impl<'a> InstanceLoaderBuilder<'a>
sourcepub fn create_instance_fn(
self,
create_instance: &'a mut dyn FnMut(&InstanceCreateInfo, Option<&AllocationCallbacks>) -> VulkanResult<Instance>
) -> Self
pub fn create_instance_fn(
self,
create_instance: &'a mut dyn FnMut(&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.
sourcepub fn symbol_fn(
self,
symbol: &'a mut impl FnMut(Instance, *const c_char) -> Option<PFN_vkVoidFunction>
) -> Self
pub fn symbol_fn(
self,
symbol: &'a mut impl FnMut(Instance, *const c_char) -> Option<PFN_vkVoidFunction>
) -> Self
Specify a custom symbol function, called to get instance function pointers, to use in place of the default.
sourcepub fn allocation_callbacks(self, allocator: &'a AllocationCallbacks) -> Self
pub fn allocation_callbacks(self, allocator: &'a AllocationCallbacks) -> Self
Specify custom allocation callback functions.
sourcepub 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.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for InstanceLoaderBuilder<'a>
impl<'a> !Send for InstanceLoaderBuilder<'a>
impl<'a> !Sync for InstanceLoaderBuilder<'a>
impl<'a> Unpin for InstanceLoaderBuilder<'a>
impl<'a> !UnwindSafe for InstanceLoaderBuilder<'a>
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