5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_AHB_EXTERNAL_SEMAPHORE_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_AHB_EXTERNAL_SEMAPHORE_VK_H_
8 #include "flutter/fml/unique_fd.h"
12 #include "vulkan/vulkan_handles.hpp"
A Vulkan semaphore that can be exported as a platform specific file descriptor.
const vk::Semaphore & GetHandle() const
ExternalSemaphoreVK(const ExternalSemaphoreVK &)=delete
const SharedHandleVK< vk::Semaphore > & GetSharedHandle() const
ExternalSemaphoreVK & operator=(const ExternalSemaphoreVK &)=delete
fml::UniqueFD CreateFD() const
Create a new sync file descriptor for the underlying semaphore.
bool IsValid() const
If a valid fence could be created.
ExternalSemaphoreVK(const std::shared_ptr< Context > &context)
Create a new un-signaled semaphore that can be exported as a sync file descriptor.
std::shared_ptr< SharedObjectVKT< T > > SharedHandleVK