MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / ExportHandle

Method ExportHandle

tests/framework/binding.cpp:932–937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930
931#ifdef VK_USE_PLATFORM_WIN32_KHR
932VkResult Fence::ExportHandle(HANDLE& win32_handle, VkExternalFenceHandleTypeFlagBits handle_type) {
933 VkFenceGetWin32HandleInfoKHR ghi = vku::InitStructHelper();
934 ghi.fence = handle();
935 ghi.handleType = handle_type;
936 return vk::GetFenceWin32HandleKHR(device(), &ghi, &win32_handle);
937}
938
939VkResult Fence::ImportHandle(HANDLE win32_handle, VkExternalFenceHandleTypeFlagBits handle_type, VkFenceImportFlags flags) {
940 VkImportFenceWin32HandleInfoKHR ifi = vku::InitStructHelper();

Callers 8

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 4

GetFenceWin32HandleKHRFunction · 0.85
GetFenceFdKHRFunction · 0.85
GetSemaphoreFdKHRFunction · 0.85

Tested by

no test coverage detected