Definition at line 23 of file khr_swapchain_impl_vk.cc.
◆ KHRFrameSynchronizerVK()
| impeller::KHRFrameSynchronizerVK::KHRFrameSynchronizerVK |
( |
const vk::Device & |
device | ) |
|
|
inlineexplicit |
Definition at line 31 of file khr_swapchain_impl_vk.cc.
32 auto acquire_res = device.createFenceUnique(
33 vk::FenceCreateInfo{vk::FenceCreateFlagBits::eSignaled});
34 auto render_res = device.createSemaphoreUnique({});
35 if (acquire_res.result != vk::Result::eSuccess ||
36 render_res.result != vk::Result::eSuccess) {
40 acquire = std::move(acquire_res.value);
vk::UniqueSemaphore render_ready
References acquire, is_valid, render_ready, and VALIDATION_LOG.
◆ ~KHRFrameSynchronizerVK()
| impeller::KHRFrameSynchronizerVK::~KHRFrameSynchronizerVK |
( |
| ) |
|
|
default |
◆ WaitForFence()
| bool impeller::KHRFrameSynchronizerVK::WaitForFence |
( |
const vk::Device & |
device | ) |
|
|
inline |
Definition at line 47 of file khr_swapchain_impl_vk.cc.
48 if (
auto result = device.waitForFences(
51 std::numeric_limits<uint64_t>::max()
53 result != vk::Result::eSuccess) {
57 if (
auto result = device.resetFences(*
acquire);
58 result != vk::Result::eSuccess) {
59 VALIDATION_LOG <<
"Could not reset fence: " << vk::to_string(result);
References acquire, and VALIDATION_LOG.
◆ acquire
| vk::UniqueFence impeller::KHRFrameSynchronizerVK::acquire |
◆ final_cmd_buffer
| std::shared_ptr<CommandBuffer> impeller::KHRFrameSynchronizerVK::final_cmd_buffer |
◆ has_onscreen
| bool impeller::KHRFrameSynchronizerVK::has_onscreen = false |
◆ is_valid
| bool impeller::KHRFrameSynchronizerVK::is_valid = false |
◆ render_ready
| vk::UniqueSemaphore impeller::KHRFrameSynchronizerVK::render_ready |
The documentation for this struct was generated from the following file: