Trait vulkano::library::Loader

source ·
pub unsafe trait Loader: Send + Sync {
    // Required method
    unsafe fn get_instance_proc_addr(
        &self,
        instance: Instance,
        name: *const c_char
    ) -> PFN_vkVoidFunction;
}
Expand description

Implemented on objects that grant access to a Vulkan implementation.

Required Methods§

source

unsafe fn get_instance_proc_addr( &self, instance: Instance, name: *const c_char ) -> PFN_vkVoidFunction

Calls the vkGetInstanceProcAddr function. The parameters are the same.

The returned function must stay valid for as long as self is alive.

Trait Implementations§

source§

impl Debug for dyn Loader

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError>

Formats the value using the given formatter. Read more

Implementors§