summaryrefslogtreecommitdiffstats
path: root/include/vulkan/vulkan_intel.h
diff options
context:
space:
mode:
authorKristian Høgsberg <kristian.h.kristensen@intel.com>2015-05-17 16:39:20 -0700
committerKristian Høgsberg <kristian.h.kristensen@intel.com>2015-05-17 21:08:30 -0700
commitb9eb56a404f8ee99348d2042c7fa613fda092409 (patch)
tree9340ba61478b4b6267301c18225f348884a5e415 /include/vulkan/vulkan_intel.h
parent75cb85c56aea72f8a044a25e9a8ffd5621a4129f (diff)
downloadexternal_mesa3d-b9eb56a404f8ee99348d2042c7fa613fda092409.zip
external_mesa3d-b9eb56a404f8ee99348d2042c7fa613fda092409.tar.gz
external_mesa3d-b9eb56a404f8ee99348d2042c7fa613fda092409.tar.bz2
vk: Add function pointer typedef for intel extension
Also guard function prototype by VK_PROTOTYPES.
Diffstat (limited to 'include/vulkan/vulkan_intel.h')
-rw-r--r--include/vulkan/vulkan_intel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vulkan/vulkan_intel.h b/include/vulkan/vulkan_intel.h
index 58478f0..631e636 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