Vulkan with Python 04: Physical Devices

preview_player
Показать описание
#gamedev #gamedevelopment #programming

Рекомендации по теме
Комментарии
Автор

Hi! First of all, thanks so much for your series of videos and your channel, which I find absolutely awesome.
I've tried following the tutorial, and so far found it quite great, but I've found an issue initializing the Vulkan instance under OS X,
and wondered if you think you could throw some light, or if someone found a solution:

When I try to initialize the driver, I get the following error:

Encountered VK_ERROR_INCOMPATIBLE_DRIVER

I've found the following technical note in the documentation. But the flag seems not to be available in the Python wrapper.
Do you have any idea about how to guess the proper value and append it so the instance can initialise properly?

Any hint would be greatly appreciated.

Thanks again for your great work :-).

"""

Beginning with the 1.3.216 Vulkan SDK, the Vulkan Loader is strictly enforcing the new VK_KHR_PORTABILITY_subset extension. The most likely cause of this error message on instance creation is failure to adhear to this extension, which prevents applications on all platforms from selecting by default a non-conformant Vulkan implementaton without opting in. MoltenVK is currently not fully conformant, and thus supporting this extension is necessary for building robust and portable Vulkan based applications that are good citizens in the Vulkan ecosystem.

Opting in is simple. First add the bit to your VkInstanceCreateInfo structures .flags member, then add two instance extensions to your instance extensions list: VK_KHR_portability_enumeration, and """

ItsCarlos_