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

◆ record_stages()

void MayaFlux::Yantra::GpuDispatchCore::record_stages ( const std::vector< DependencyStage > & stages)

Stage and record each stage in order, one dispatch per stage.

Each stage is staged and recorded in turn, so its uploads and fills land between the dispatches before and after it. With a recording attached nothing is submitted; without one, each stage is submitted and awaited on its own. The context's own shader config, bindings and staged data are restored before this returns.

Parameters
stagesOrdered stage descriptions.

Definition at line 511 of file GpuDispatchCore.cpp.

512{
513 for_each_stage(stages, [this](const std::array<uint32_t, 3>& groups, const Portal::Graphics::IndirectDispatch& indirect) {
514 m_resources.record_stage(dispatch_key(), groups, m_push_constants, indirect);
515 });
516}
const std::string & dispatch_key() const
The key used for this context's GpuResourceManager unit.
std::vector< uint8_t > m_push_constants
void for_each_stage(const std::vector< DependencyStage > &stages, const std::function< void(const std::array< uint32_t, 3 > &, const Portal::Graphics::IndirectDispatch &)> &on_stage)
Stage each of stages in turn and hand its dispatch key, groups, push constants and indirect source to...

References dispatch_key(), for_each_stage(), m_push_constants, and m_resources.

Referenced by MayaFlux::Yantra::run_windowed_kernel().

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