I am starting with Vulkan and I follow the Niko Kauppi's tutorial on Youtube.
I have an error when creating a device with vkCreateDevice, it returns VK_ERROR_EXTENSION_NOT_PRESENT
Here some part of my code:
The call to vkCreateDevice
_gpu_count = 0; vkEnumeratePhysicalDevices(instance, &_gpu_count, nullptr); std::vector<VkPhysicalDevice> gpu_list(_gpu_count); vkEnumeratePhysicalDevices(instance, &_gpu_count, gpu_list.data()); _gpu = gpu_list[0]; vkGetPhysicalDeviceProperties(_gpu, &_gpu_properties); VkDeviceCreateInfo device_create_info = _CreateDeviceInfo(); vulkanCheckError(vkCreateDevice(_gpu, &device_create_info, nullptr, &_device));
_gpu_count = 1 and _gpu_properties seems to recognize well my nvidia gpu (which is not up to date)
device_create_info
VkDeviceCreateInfo _createDeviceInfo; _createDeviceInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; _createDeviceInfo.queueCreateInfoCount = 1; VkDeviceQueueCreateInfo _queueInfo = _CreateDeviceQueueInfo(); _createDeviceInfo.pQueueCreateInfos = &_queueInfo;
I don't understand the meaning of the error: "A requested extension is not supported" according to Khronos' doc.
Thanks for your help
enabledExtensionCountand/or theppEnabledExtensionNamesmembers of_createDeviceInfo? that's where the requested extensions are put - ratchet freak