我在 Big Sur(2014 年中 15" Retina)上使用 Vulkan 1.2.170 和 MoltenVK(和 GLFW)。我创建了实例,VK_LAYER_KHRONOS_validation当我调用时,vkCreateDevice我收到警告
VUID-VkDeviceCreateInfo-pProperties-04451(ERROR / SPEC): msgNum: 976972960 - Validation Error:
[ VUID-VkDeviceCreateInfo-pProperties-04451 ] Object 0: handle = 0x10cfaad00,
type = VK_OBJECT_TYPE_PHYSICAL_DEVICE; | MessageID = 0x3a3b6ca0 | vkCreateDevice:
VK_KHR_portability_subset must be enabled because physical device VkPhysicalDevice 0x10cfaad00[]
supports it The Vulkan spec states: If the [VK_KHR_portability_subset] extension is included in
pProperties of vkEnumerateDeviceExtensionProperties, ppEnabledExtensions must include
"VK_KHR_portability_subset".
Run Code Online (Sandbox Code Playgroud)
好吧,好吧,我将它作为唯一的扩展添加到扩展参数中。然后它说
Missing extension required by the device extension VK_KHR_portability_subset:
VK_KHR_get_physical_device_properties2.
Run Code Online (Sandbox Code Playgroud)
和段错误。如果我添加 …