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

Method ImportHandle

tests/framework/binding.cpp:939–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937}
938
939VkResult Fence::ImportHandle(HANDLE win32_handle, VkExternalFenceHandleTypeFlagBits handle_type, VkFenceImportFlags flags) {
940 VkImportFenceWin32HandleInfoKHR ifi = vku::InitStructHelper();
941 ifi.fence = handle();
942 ifi.handleType = handle_type;
943 ifi.handle = win32_handle;
944 ifi.flags = flags;
945 return vk::ImportFenceWin32HandleKHR(device(), &ifi);
946}
947#endif // VK_USE_PLATFORM_WIN32_KHR
948
949VkResult Fence::ExportHandle(int& fd_handle, VkExternalFenceHandleTypeFlagBits handle_type) {

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

ImportFenceFdKHRFunction · 0.85
ImportSemaphoreFdKHRFunction · 0.85

Tested by

no test coverage detected