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

◆ set_recording()

void MayaFlux::Yantra::GpuResourceManager::set_recording ( std::shared_ptr< GpuDispatchRecorder > recording)

Append this manager's work to a recording with the same compute isolation setting, or pass null to submit again.

Given once, by whoever owns the recording, before the first dispatch. While attached:

  • dispatch_async, record_stage and the batched dispatches append to the recording and return INVALID_FENCE where a fence is returned;
  • dispatch appends, then submits and waits;
  • uploads and fills are recorded in order with the dispatches;
  • downloads submit and wait for the recording before reading;
  • image transitions are recorded into it;
  • retired buffers and pipelines are freed only after the recording's next submission completes.

Definition at line 933 of file GpuResourceManager.cpp.

934{
935 if (recording && recording->compute_isolated() != m_compute_isolated) {
936 error<std::invalid_argument>(
939 std::source_location::current(),
940 "GpuResourceManager: recording and context must agree on compute isolation");
941 }
942 m_recording = std::move(recording);
943}
std::shared_ptr< GpuDispatchRecorder > m_recording
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains).
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.

References MayaFlux::Journal::BufferProcessing, m_compute_isolated, m_recording, and MayaFlux::Journal::Yantra.

Referenced by operator=().

Here is the caller graph for this function: