appInfo.free();
return ret;
}
private static long setupDebugging(VkInstance instance, int flags, VkDebugReportCallbackEXT callback) {
VkDebugReportCallbackCreateInfoEXT dbgCreateInfo = VkDebugReportCallbackCreateInfoEXT.calloc()
<BUG>.sType(VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT) // <- the struct type
</BUG>
.pNext(NULL) // <- must be NULL
.pfnCallback(callback) // <- the actual function pointer (in LWJGL a Closure)
.pUserData(NULL) // <- any user data provided to the debug report callback function

appInfo.free();
return ret;
}
private static long setupDebugging(VkInstance instance, int flags, VkDebugReportCallbackEXT callback) {
VkDebugReportCallbackCreateInfoEXT dbgCreateInfo = VkDebugReportCallbackCreateInfoEXT.calloc()
.sType(VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT) // <- the struct type
.pNext(NULL) // <- must be NULL
.pfnCallback(callback) // <- the actual function pointer (in LWJGL a Closure)
.pUserData(NULL) // <- any user data provided to the debug report callback function
