diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-04-16 12:51:37 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2015-04-16 12:54:48 -0600 |
| commit | ca494b063920653e250d9c1e5d62c7f79e1b5327 (patch) | |
| tree | 66576104b4d9454046a43de0242499873ada4e63 /include | |
| parent | 621cdc9bdbc3cf2dcb1a8b8713e0ad20ff42aa7e (diff) | |
| download | usermoji-ca494b063920653e250d9c1e5d62c7f79e1b5327.tar.xz | |
Add GetPhysicalDeviceExtensionInfo() function to API
Added function to driver, currently returning a count of 0 and VK_ERROR_INVALID_VALUE if an attempt it made to retrieve extension properties.
This change is slightly leading another so the first paramter is currently "VkPhysicalGpu" but should be migrated to "VkPhysicalDevice" when that change comes in.
Diffstat (limited to 'include')
| -rw-r--r-- | include/vkLayer.h | 2 | ||||
| -rw-r--r-- | include/vkWsiX11Ext.h | 2 | ||||
| -rw-r--r-- | include/vulkan.h | 11 |
3 files changed, 9 insertions, 6 deletions
diff --git a/include/vkLayer.h b/include/vkLayer.h index ba2e43b7..813e6872 100644 --- a/include/vkLayer.h +++ b/include/vkLayer.h @@ -35,7 +35,7 @@ typedef struct VkLayerDispatchTable_ PFN_vkCreateDevice CreateDevice; PFN_vkDestroyDevice DestroyDevice; PFN_vkGetGlobalExtensionInfo GetGlobalExtensionInfo; - PFN_vkGetExtensionSupport GetExtensionSupport; + PFN_vkGetPhysicalDeviceExtensionInfo GetPhysicalDeviceExtensionInfo; PFN_vkEnumerateLayers EnumerateLayers; PFN_vkGetDeviceQueue GetDeviceQueue; PFN_vkQueueSubmit QueueSubmit; diff --git a/include/vkWsiX11Ext.h b/include/vkWsiX11Ext.h index 2f1d6239..f260f9f5 100644 --- a/include/vkWsiX11Ext.h +++ b/include/vkWsiX11Ext.h @@ -94,7 +94,7 @@ typedef VkResult (VKAPI *PFN_vkWsiX11QueuePresent)(VkQueue queue, const VK_WSI_X * without having a GPU as the first parameter, the loader could not find the * dispatch table. * - * This function is available when vkGetExtensionSupport says "VK_WSI_X11" + * This function is available when vkGetGlobalExtensionInfo says "VK_WSI_X11" * is supported. */ VkResult VKAPI vkWsiX11AssociateConnection( diff --git a/include/vulkan.h b/include/vulkan.h index 9e0fcf1c..185db928 100644 --- a/include/vulkan.h +++ b/include/vulkan.h @@ -2205,7 +2205,7 @@ typedef void * (VKAPI *PFN_vkGetProcAddr)(VkPhysicalGpu gpu, const char * pNam typedef VkResult (VKAPI *PFN_vkCreateDevice)(VkPhysicalGpu gpu, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice); typedef VkResult (VKAPI *PFN_vkDestroyDevice)(VkDevice device); typedef VkResult (VKAPI *PFN_vkGetGlobalExtensionInfo)(VkExtensionInfoType infoType, uint32_t extensionIndex, size_t* pDataSize, void* pData); -typedef VkResult (VKAPI *PFN_vkGetExtensionSupport)(VkPhysicalGpu gpu, const char* pExtName); +typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceExtensionInfo)(VkPhysicalGpu gpu, VkExtensionInfoType infoType, uint32_t extensionIndex, size_t* pDataSize, void* pData); typedef VkResult (VKAPI *PFN_vkEnumerateLayers)(VkPhysicalGpu gpu, size_t maxLayerCount, size_t maxStringSize, size_t* pOutLayerCount, char* const* pOutLayers, void* pReserved); typedef VkResult (VKAPI *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueNodeIndex, uint32_t queueIndex, VkQueue* pQueue); typedef VkResult (VKAPI *PFN_vkQueueSubmit)(VkQueue queue, uint32_t cmdBufferCount, const VkCmdBuffer* pCmdBuffers, VkFence fence); @@ -2358,9 +2358,12 @@ VkResult VKAPI vkGetGlobalExtensionInfo( size_t* pDataSize, void* pData); -VkResult VKAPI vkGetExtensionSupport( - VkPhysicalGpu gpu, - const char* pExtName); +VkResult VKAPI vkGetPhysicalDeviceExtensionInfo( + VkPhysicalGpu gpu, + VkExtensionInfoType infoType, + uint32_t extensionIndex, + size_t* pDataSize, + void* pData); // Layer discovery functions |
