Definition at line 23 of file khr_swapchain_impl_vk.cc.
◆ KHRFrameSynchronizerVK()
impeller::KHRFrameSynchronizerVK::KHRFrameSynchronizerVK |
( |
const vk::Device & |
device | ) |
|
|
inlineexplicit |
Definition at line 32 of file khr_swapchain_impl_vk.cc.
33 auto acquire_res = device.createFenceUnique(
34 vk::FenceCreateInfo{vk::FenceCreateFlagBits::eSignaled});
35 auto render_res = device.createSemaphoreUnique({});
36 auto present_res = device.createSemaphoreUnique({});
37 if (acquire_res.result != vk::Result::eSuccess ||
38 render_res.result != vk::Result::eSuccess ||
39 present_res.result != vk::Result::eSuccess) {
43 acquire = std::move(acquire_res.value);
vk::UniqueSemaphore render_ready
vk::UniqueSemaphore present_ready
References acquire, is_valid, present_ready, render_ready, and VALIDATION_LOG.
◆ ~KHRFrameSynchronizerVK()
impeller::KHRFrameSynchronizerVK::~KHRFrameSynchronizerVK |
( |
| ) |
|
|
default |
◆ WaitForFence()
bool impeller::KHRFrameSynchronizerVK::WaitForFence |
( |
const vk::Device & |
device | ) |
|
|
inline |
Definition at line 51 of file khr_swapchain_impl_vk.cc.
52 if (
auto result = device.waitForFences(
55 std::numeric_limits<uint64_t>::max()
57 result != vk::Result::eSuccess) {
61 if (
auto result = device.resetFences(*
acquire);
62 result != vk::Result::eSuccess) {
63 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 |
◆ present_ready
vk::UniqueSemaphore impeller::KHRFrameSynchronizerVK::present_ready |
◆ render_ready
vk::UniqueSemaphore impeller::KHRFrameSynchronizerVK::render_ready |
The documentation for this struct was generated from the following file: