Hi,
I've got a simple function that helps set up debugging.
private int createDebugUtilsMessengerEXT(VkInstance instance, VkDebugUtilsMessengerCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator) {
long functionHandle = vkGetInstanceProcAddr(instance, memUTF8("vkCreateDebugUtilsMessengerEXT"));
if (functionHandle != NULL) {
try(MemoryStack stack = MemoryStack.stackPush()) {
LongBuffer pDebugMessenger = stack.callocLong(1);
int result = vkCreateDebugUtilsMessengerEXT(instance, pCreateInfo, pAllocator, pDebugMessenger);
debugMessengerHandle = pDebugMessenger.get(0);
return result;
}
}
return VK_ERROR_EXTENSION_NOT_PRESENT;
}
As mentioned in the title vkGetInstanceProcAddr(instance, memUTF8("vkCreateDebugUtilsMessengerEXT")) always returns 0 so i never get a pointer to that function. Any idea why ? Is there something I have to configure or import ? I've written a C++ version and it works. I'm using lwjgl 3.2.1