Skip to main content

get_device_proc_addr

Function get_device_proc_addr 

Source
pub unsafe fn get_device_proc_addr(
    device: &Device,
    name: &CStr,
) -> PFN_vkVoidFunction
Expand description

Resolve a device-specific function by name using this device’s gdpa.

Returns None if the function is not available for this device.

§Safety

name must be a valid NUL-terminated command name. The caller must cast and use the returned pointer only while this device is live.

Khronos reference: vkGetDeviceProcAddr