Definition at line 24 of file swapchain_impl_vk.cc.
◆ FrameSynchronizer()
| impeller::FrameSynchronizer::FrameSynchronizer |
( |
const vk::Device & |
device | ) |
|
|
inlineexplicit |
Definition at line 31 of file swapchain_impl_vk.cc.
32 auto acquire_res = device.createFenceUnique(
33 vk::FenceCreateInfo{vk::FenceCreateFlagBits::eSignaled});
34 auto render_res = device.createSemaphoreUnique({});
35 auto present_res = device.createSemaphoreUnique({});
36 if (acquire_res.result != vk::Result::eSuccess ||
37 render_res.result != vk::Result::eSuccess ||
38 present_res.result != vk::Result::eSuccess) {
42 acquire = std::move(acquire_res.value);
References acquire, is_valid, present_ready, render_ready, and VALIDATION_LOG.
◆ ~FrameSynchronizer()
| impeller::FrameSynchronizer::~FrameSynchronizer |
( |
| ) |
|
|
default |
◆ WaitForFence()
| bool impeller::FrameSynchronizer::WaitForFence |
( |
const vk::Device & |
device | ) |
|
|
inline |
Definition at line 50 of file swapchain_impl_vk.cc.
51 if (
auto result = device.waitForFences(
54 std::numeric_limits<uint64_t>::max()
56 result != vk::Result::eSuccess) {
60 if (
auto result = device.resetFences(*
acquire);
61 result != vk::Result::eSuccess) {
62 VALIDATION_LOG <<
"Could not reset fence: " << vk::to_string(result);
References acquire, and VALIDATION_LOG.
◆ acquire
| vk::UniqueFence impeller::FrameSynchronizer::acquire |
◆ final_cmd_buffer
| std::shared_ptr<CommandBuffer> impeller::FrameSynchronizer::final_cmd_buffer |
◆ is_valid
| bool impeller::FrameSynchronizer::is_valid = false |
◆ present_ready
| vk::UniqueSemaphore impeller::FrameSynchronizer::present_ready |
◆ render_ready
| vk::UniqueSemaphore impeller::FrameSynchronizer::render_ready |
The documentation for this struct was generated from the following file: