Definition at line 28 of file khr_swapchain_impl_vk.cc.
◆ KHRFrameSynchronizerVK()
impeller::KHRFrameSynchronizerVK::KHRFrameSynchronizerVK |
( |
const vk::Device & |
device | ) |
|
|
inlineexplicit |
Definition at line 35 of file khr_swapchain_impl_vk.cc.
35 {
36 auto acquire_res =
device.createFenceUnique(
37 vk::FenceCreateInfo{vk::FenceCreateFlagBits::eSignaled});
38 auto render_res =
device.createSemaphoreUnique({});
39 auto present_res =
device.createSemaphoreUnique({});
40 if (acquire_res.result != vk::Result::eSuccess ||
41 render_res.result != vk::Result::eSuccess ||
42 present_res.result != vk::Result::eSuccess) {
44 return;
45 }
46 acquire = std::move(acquire_res.value);
50 }
vk::UniqueSemaphore render_ready
vk::UniqueSemaphore present_ready
◆ ~KHRFrameSynchronizerVK()
impeller::KHRFrameSynchronizerVK::~KHRFrameSynchronizerVK |
( |
| ) |
|
|
default |
◆ WaitForFence()
bool impeller::KHRFrameSynchronizerVK::WaitForFence |
( |
const vk::Device & |
device | ) |
|
|
inline |
Definition at line 54 of file khr_swapchain_impl_vk.cc.
54 {
57 true,
59 );
60 result != vk::Result::eSuccess) {
62 return false;
63 }
65 result != vk::Result::eSuccess) {
67 return false;
68 }
69 return true;
70 }
static float max(float r, float g, float b)
static SkString to_string(int n)
◆ acquire
vk::UniqueFence impeller::KHRFrameSynchronizerVK::acquire |
◆ final_cmd_buffer
std::shared_ptr<CommandBuffer> impeller::KHRFrameSynchronizerVK::final_cmd_buffer |
◆ 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: