#include <fence_waiter_vk.h>
Public Member Functions | |
| ~FenceWaiterVK () | |
| bool | IsValid () const |
| void | Terminate () |
| fml::Status | AddFence (vk::UniqueFence fence, const std::function< fml::Status(vk::Fence)> &submit_callback, fml::closure completion_callback) |
| Invokes the [submit_callback] synchronously and adds the fence to the wait set if it succeeds. The [completion_callback] will be called when the submitted command completes and the fence is signaled. | |
Friends | |
| class | ContextVK |
Definition at line 25 of file fence_waiter_vk.h.
| impeller::FenceWaiterVK::~FenceWaiterVK | ( | ) |
| fml::Status impeller::FenceWaiterVK::AddFence | ( | vk::UniqueFence | fence, |
| const std::function< fml::Status(vk::Fence)> & | submit_callback, | ||
| fml::closure | completion_callback | ||
| ) |
Invokes the [submit_callback] synchronously and adds the fence to the wait set if it succeeds. The [completion_callback] will be called when the submitted command completes and the fence is signaled.
Definition at line 63 of file fence_waiter_vk.cc.
References impeller::WaitSetEntry::Create(), fml::kCancelled, and fml::kInvalidArgument.
| bool impeller::FenceWaiterVK::IsValid | ( | ) | const |
| void impeller::FenceWaiterVK::Terminate | ( | ) |
Definition at line 213 of file fence_waiter_vk.cc.
Referenced by ~FenceWaiterVK().
|
friend |
Definition at line 43 of file fence_waiter_vk.h.