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

◆ import_shared()

void MayaFlux::Yantra::GpuDispatchCore::import_shared ( uint32_t set,
size_t binding_index,
const GpuDispatchCore & source,
uint32_t source_set,
size_t source_binding_index,
GpuBufferBinding::ElementType element_type )
inline

Resolve a binding of this context to a shared buffer owned by another context.

Every shader of this context that binds (set, binding_index) then reads the source buffer, in the order of the shared recording and with no copy. Both contexts must have been given the same recording. The import follows the owner when it replaces the buffer. Treat it as read only: only the owner declares and grows the buffer.

Parameters
setSet of the binding to resolve here.
binding_indexBinding to resolve here.
sourceContext that owns the buffer.
source_setSet of the source buffer.
source_binding_indexBinding of the source buffer.
element_typeElement type expected here. Its width must equal the owner's.
Exceptions
std::invalid_argumentwhen the source holds no such buffer, the recordings differ, the widths differ, or the binding already holds a different buffer.

Definition at line 327 of file GpuDispatchCore.hpp.

329 {
330 m_resources.import_shared(set, binding_index, source.m_resources, source_set, source_binding_index, element_type);
331 }
Source source()
Begin a Source chain.
Definition Plot.hpp:127

References GpuDispatchCore(), and m_resources.

Here is the call graph for this function: