pub unsafe fn load_instance_functions_inner(
icd: &mut LoadedICD,
instance: VkInstance,
) -> Result<(), IcdError>Expand description
Load instance-level functions
ยงSafety
This function is unsafe because:
- It calls vkGetInstanceProcAddr with the provided instance handle
- It transmutes void pointers to function pointers without type checking
- The instance must be a valid VkInstance created by this ICD
- The icd must contain valid function pointers from the same ICD that created the instance
- The instance must remain valid for at least as long as these functions are used
- Using an invalid instance handle will cause undefined behavior
- Function signatures must match the Vulkan specification exactly