I want to check whether a Vulkan physical device supports triangle-fan topologies.
Triangle fans are in the Vulkan 1.0 spec, but apparently Molten is a "portability subset" that doesn't support them.
I use VK10.vkEnumerateDeviceExtensionProperties() to check whether the "VK_KHR_portability_subset" extension is available.
If it is, I use KHRGetPhysicalDeviceProperties2.vkGetPhysicalDeviceFeatures2KHR() to query device features.
I expect that somewhere in the pNext chain of the VkPhysicalDeviceFeatures2 there will be a Struct with stype=VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR.
How do I find it?
pNext() returns a handle to a Struct, but I don't know how to determine the type of the Struct.
Or am I going about this backward? Do I fill in the pNext() field myself, with the handle of the Struct I want vkGetPhysicalDeviceFeatures2KHR() to populate?