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

◆ shared_buffer_handle()

Portal::Graphics::GpuBufferHandle MayaFlux::Yantra::GpuResourceManager::shared_buffer_handle ( uint32_t  set,
size_t  binding_index 
) const

Non-owning view of the shared buffer at (set, binding_index).

The manager keeps ownership. A null handle is returned when no such buffer exists, and the view is invalidated if ensure_shared_buffer later grows the slot.

Definition at line 462 of file GpuResourceManager.cpp.

463{
464 const auto it = m_shared->slots.find({ set, binding_index });
465 if (it == m_shared->slots.end())
466 return {};
467 return { .buffer = it->second.buffer, .mapped_ptr = it->second.mapped_ptr, .size_bytes = it->second.allocated_bytes };
468}
std::unique_ptr< SharedBuffers > m_shared

References MayaFlux::Portal::Graphics::GpuBufferHandle::buffer, and m_shared.

Referenced by MayaFlux::Yantra::GpuDispatchCore::prepare_dependency().

+ Here is the caller graph for this function: