diff options
author | Kristian Høgsberg <[email protected]> | 2015-05-17 16:39:20 -0700 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2015-05-17 21:08:30 -0700 |
commit | b9eb56a404f8ee99348d2042c7fa613fda092409 (patch) | |
tree | 9340ba61478b4b6267301c18225f348884a5e415 | |
parent | 75cb85c56aea72f8a044a25e9a8ffd5621a4129f (diff) |
vk: Add function pointer typedef for intel extension
Also guard function prototype by VK_PROTOTYPES.
-rw-r--r-- | include/vulkan/vulkan_intel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vulkan/vulkan_intel.h b/include/vulkan/vulkan_intel.h index 58478f075e6..631e63657bf 100644 --- a/include/vulkan/vulkan_intel.h +++ b/include/vulkan/vulkan_intel.h @@ -42,12 +42,18 @@ typedef struct VkDmaBufImageCreateInfo_ uint32_t strideInBytes; } VkDmaBufImageCreateInfo; +typedef VkResult (VKAPI *PFN_vkCreateDmaBufImageINTEL)(VkDevice device, const VkDmaBufImageCreateInfo* pCreateInfo, VkDeviceMemory* pMem, VkImage* pImage); + +#ifdef VK_PROTOTYPES + VkResult VKAPI vkCreateDmaBufImageINTEL( VkDevice _device, const VkDmaBufImageCreateInfo* pCreateInfo, VkDeviceMemory* pMem, VkImage* pImage); +#endif + #ifdef __cplusplus } // extern "C" #endif // __cplusplus |