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§
sourceunsafe fn get_instance_proc_addr(
&self,
instance: Instance,
name: *const c_char
) -> PFN_vkVoidFunction
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.