vkGetInstanceProcAddr and vkGetDeviceProcAddr

Hello,

It is said that vkGetInstanceProcAddr can be used to get any API function pointer

Then what is the difference between

vkGetInstanceProcAddr(inst, “some api”) , where inst may be nullptr

and

vkGetDeviceProcAddr(device, “some api”)

1 Like

The difference is that the device function saves a dispatch. The instance one has to make sure that your function calls will work with all devices, the device one gives you function pointers that only work with that device.

2 Likes

Oh, I understand
Thank you and see you, Sascha