mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
vulkan: add common implementation of vkGetPhysicalDeviceFeatures2
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22333>
This commit is contained in:
parent
c93b179d76
commit
cc02214304
2 changed files with 12 additions and 0 deletions
|
|
@ -113,6 +113,15 @@ vk_common_GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice,
|
|||
*pFeatures = features2.features;
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
vk_common_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
||||
VkPhysicalDeviceFeatures2 *pFeatures)
|
||||
{
|
||||
VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice);
|
||||
|
||||
vk_get_physical_device_features(pFeatures, &pdevice->supported_features);
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
vk_common_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
|
||||
VkPhysicalDeviceProperties *pProperties)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
#include "vk_dispatch_table.h"
|
||||
#include "vk_extensions.h"
|
||||
#include "vk_object.h"
|
||||
#include "vk_physical_device_features.h"
|
||||
|
||||
#include "util/list.h"
|
||||
|
||||
|
|
@ -49,6 +50,8 @@ struct vk_physical_device {
|
|||
/** Instance which is the parent of this physical device */
|
||||
struct vk_instance *instance;
|
||||
|
||||
struct vk_features supported_features;
|
||||
|
||||
/** Table of all supported device extensions
|
||||
*
|
||||
* This table is initialized from the `supported_extensions` parameter
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue