vk: Add function pointer typedef for intel extension
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Sun, 17 May 2015 23:39:20 +0000 (16:39 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Mon, 18 May 2015 04:08:30 +0000 (21:08 -0700)
Also guard function prototype by VK_PROTOTYPES.

include/vulkan/vulkan_intel.h

index 58478f0..631e636 100644 (file)
@@ -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