MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ await_use()

void MayaFlux::Buffers::VKBuffer::await_use ( ) const

Block until the latest recorded submission has completed; returns at once if none.

Definition at line 217 of file VKBuffer.cpp.

218{
219 const uint64_t packed = m_last_use.load(std::memory_order_acquire);
220 if (packed == 0) {
221 return;
222 }
223
224 auto* buffer_service = Registry::BackendRegistry::instance()
225 .get_service<Registry::Service::BufferService>();
226
227 if (buffer_service && buffer_service->await_point) {
228 buffer_service->await_point(
229 static_cast<uint32_t>(packed >> 62), packed & ((uint64_t { 1 } << 62) - 1));
230 }
231}
std::atomic< uint64_t > m_last_use
Definition VKBuffer.hpp:676
Interface * get_service()
Query for a backend service.
static BackendRegistry & instance()
Get the global registry instance.

References MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Registry::BackendRegistry::instance(), and m_last_use.

Referenced by get_data(), resize(), and set_data().

Here is the call graph for this function:
Here is the caller graph for this function: