vk: Move driver properties to properties section from features section
This commit is contained in:
@@ -41,13 +41,6 @@ namespace vk
|
|||||||
features2.pNext = &shader_support_info;
|
features2.pNext = &shader_support_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device_extensions.is_supported(VK_KHR_DRIVER_PROPERTIES_EXTENSION_NAME))
|
|
||||||
{
|
|
||||||
driver_properties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES_KHR;
|
|
||||||
driver_properties.pNext = features2.pNext;
|
|
||||||
features2.pNext = &driver_properties;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (device_extensions.is_supported(VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME))
|
if (device_extensions.is_supported(VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME))
|
||||||
{
|
{
|
||||||
descriptor_indexing_info.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES_EXT;
|
descriptor_indexing_info.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES_EXT;
|
||||||
@@ -127,6 +120,8 @@ namespace vk
|
|||||||
}
|
}
|
||||||
|
|
||||||
supported_extensions instance_extensions(supported_extensions::instance);
|
supported_extensions instance_extensions(supported_extensions::instance);
|
||||||
|
supported_extensions device_extensions(supported_extensions::device, nullptr, dev);
|
||||||
|
|
||||||
if (!instance_extensions.is_supported(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME))
|
if (!instance_extensions.is_supported(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME))
|
||||||
{
|
{
|
||||||
vkGetPhysicalDeviceProperties(dev, &props);
|
vkGetPhysicalDeviceProperties(dev, &props);
|
||||||
@@ -146,6 +141,13 @@ namespace vk
|
|||||||
properties2.pNext = &descriptor_indexing_props;
|
properties2.pNext = &descriptor_indexing_props;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device_extensions.is_supported(VK_KHR_DRIVER_PROPERTIES_EXTENSION_NAME))
|
||||||
|
{
|
||||||
|
driver_properties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES_KHR;
|
||||||
|
driver_properties.pNext = properties2.pNext;
|
||||||
|
properties2.pNext = &driver_properties;
|
||||||
|
}
|
||||||
|
|
||||||
auto _vkGetPhysicalDeviceProperties2KHR = reinterpret_cast<PFN_vkGetPhysicalDeviceProperties2KHR>(vkGetInstanceProcAddr(parent, "vkGetPhysicalDeviceProperties2KHR"));
|
auto _vkGetPhysicalDeviceProperties2KHR = reinterpret_cast<PFN_vkGetPhysicalDeviceProperties2KHR>(vkGetInstanceProcAddr(parent, "vkGetPhysicalDeviceProperties2KHR"));
|
||||||
ensure(_vkGetPhysicalDeviceProperties2KHR);
|
ensure(_vkGetPhysicalDeviceProperties2KHR);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user