diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-17 00:29:09 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-02-13 06:16:21 +0100 |
commit | 16f97ded2183c5ef089e97b12409642b1e67ecc7 (patch) | |
tree | 553d1e31698491135418c493d600a2c636d17e41 /src/video_core/vulkan_common/vulkan_wrapper.h | |
parent | vulkan_instance: Initialize Vulkan instance in a separate thread (diff) | |
download | yuzu-16f97ded2183c5ef089e97b12409642b1e67ecc7.tar yuzu-16f97ded2183c5ef089e97b12409642b1e67ecc7.tar.gz yuzu-16f97ded2183c5ef089e97b12409642b1e67ecc7.tar.bz2 yuzu-16f97ded2183c5ef089e97b12409642b1e67ecc7.tar.lz yuzu-16f97ded2183c5ef089e97b12409642b1e67ecc7.tar.xz yuzu-16f97ded2183c5ef089e97b12409642b1e67ecc7.tar.zst yuzu-16f97ded2183c5ef089e97b12409642b1e67ecc7.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_wrapper.h')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_wrapper.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.h b/src/video_core/vulkan_common/vulkan_wrapper.h index 0c0e7230d..55c775523 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.h +++ b/src/video_core/vulkan_common/vulkan_wrapper.h @@ -185,7 +185,7 @@ struct InstanceDispatch { }; /// Table holding Vulkan device function pointers. -struct DeviceDispatch : public InstanceDispatch { +struct DeviceDispatch : InstanceDispatch { PFN_vkAcquireNextImageKHR vkAcquireNextImageKHR{}; PFN_vkAllocateCommandBuffers vkAllocateCommandBuffers{}; PFN_vkAllocateDescriptorSets vkAllocateDescriptorSets{}; @@ -288,6 +288,10 @@ struct DeviceDispatch : public InstanceDispatch { PFN_vkGetEventStatus vkGetEventStatus{}; PFN_vkGetFenceStatus vkGetFenceStatus{}; PFN_vkGetImageMemoryRequirements vkGetImageMemoryRequirements{}; + PFN_vkGetMemoryFdKHR vkGetMemoryFdKHR{}; +#ifdef _WIN32 + PFN_vkGetMemoryWin32HandleKHR vkGetMemoryWin32HandleKHR{}; +#endif PFN_vkGetQueryPoolResults vkGetQueryPoolResults{}; PFN_vkGetSemaphoreCounterValueKHR vkGetSemaphoreCounterValueKHR{}; PFN_vkMapMemory vkMapMemory{}; @@ -673,6 +677,12 @@ class DeviceMemory : public Handle<VkDeviceMemory, VkDevice, DeviceDispatch> { using Handle<VkDeviceMemory, VkDevice, DeviceDispatch>::Handle; public: + int GetMemoryFdKHR() const; + +#ifdef _WIN32 + HANDLE GetMemoryWin32HandleKHR() const; +#endif + /// Set object name. void SetObjectNameEXT(const char* name) const; |