Repository navigation
Expand file tree
/
Copy pathwindows.c
More file actions
31 lines (29 loc) · 2.15 KB
/
Copy pathwindows.c
File metadata and controls
31 lines (29 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// +build windows
#include "windows.h"
VkResult domVkCreateWin32SurfaceKHR(PFN_vkCreateWin32SurfaceKHR fp, VkInstance instance, const VkWin32SurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface) {
return (*fp)(instance, pCreateInfo, pAllocator, pSurface);
}
VkBool32 domVkGetPhysicalDeviceWin32PresentationSupportKHR(PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR fp, VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex) {
return (*fp)(physicalDevice, queueFamilyIndex);
}
VkResult domVkGetMemoryWin32HandleKHR(PFN_vkGetMemoryWin32HandleKHR fp, VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle) {
return (*fp)(device, pGetWin32HandleInfo, pHandle);
}
VkResult domVkGetMemoryWin32HandlePropertiesKHR(PFN_vkGetMemoryWin32HandlePropertiesKHR fp, VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE handle, VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties) {
return (*fp)(device, handleType, handle, pMemoryWin32HandleProperties);
}
VkResult domVkImportSemaphoreWin32HandleKHR(PFN_vkImportSemaphoreWin32HandleKHR fp, VkDevice device, const VkImportSemaphoreWin32HandleInfoKHR* pImportSemaphoreWin32HandleInfo) {
return (*fp)(device, pImportSemaphoreWin32HandleInfo);
}
VkResult domVkGetSemaphoreWin32HandleKHR(PFN_vkGetSemaphoreWin32HandleKHR fp, VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle) {
return (*fp)(device, pGetWin32HandleInfo, pHandle);
}
VkResult domVkImportFenceWin32HandleKHR(PFN_vkImportFenceWin32HandleKHR fp, VkDevice device, const VkImportFenceWin32HandleInfoKHR* pImportFenceWin32HandleInfo) {
return (*fp)(device, pImportFenceWin32HandleInfo);
}
VkResult domVkGetFenceWin32HandleKHR(PFN_vkGetFenceWin32HandleKHR fp, VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle) {
return (*fp)(device, pGetWin32HandleInfo, pHandle);
}
VkResult domVkGetMemoryWin32HandleNV(PFN_vkGetMemoryWin32HandleNV fp, VkDevice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle) {
return (*fp)(device, memory, handleType, pHandle);
}