Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
impeller::WaitSetEntry Class Reference

Public Member Functions

void UpdateSignalledStatus (const vk::Device &device)
 
const vk::Fence & GetFence () const
 
bool IsSignalled () const
 

Static Public Member Functions

static std::shared_ptr< WaitSetEntryCreate (vk::UniqueFence p_fence, const fml::closure &p_callback)
 

Detailed Description

Definition at line 18 of file fence_waiter_vk.cc.

Member Function Documentation

◆ Create()

static std::shared_ptr< WaitSetEntry > impeller::WaitSetEntry::Create ( vk::UniqueFence  p_fence,
const fml::closure p_callback 
)
inlinestatic

Definition at line 20 of file fence_waiter_vk.cc.

21 {
22 return std::shared_ptr<WaitSetEntry>(
23 new WaitSetEntry(std::move(p_fence), p_callback));
24 }

◆ GetFence()

const vk::Fence & impeller::WaitSetEntry::GetFence ( ) const
inline

Definition at line 33 of file fence_waiter_vk.cc.

33{ return fence_.get(); }

◆ IsSignalled()

bool impeller::WaitSetEntry::IsSignalled ( ) const
inline

Definition at line 35 of file fence_waiter_vk.cc.

35{ return is_signalled_; }

◆ UpdateSignalledStatus()

void impeller::WaitSetEntry::UpdateSignalledStatus ( const vk::Device &  device)
inline

Definition at line 26 of file fence_waiter_vk.cc.

26 {
27 if (is_signalled_) {
28 return;
29 }
30 is_signalled_ = device.getFenceStatus(fence_.get()) == vk::Result::eSuccess;
31 }
VkDevice device
Definition: main.cc:53

The documentation for this class was generated from the following file: