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

◆ ensure_context()

template<ComputeData InputType = Eigen::MatrixXd, ComputeData OutputType = std::vector<std::vector<double>>>
void MayaFlux::Yantra::IntervalExtractor< InputType, OutputType >::ensure_context ( ) const
inlineprivate

Definition at line 691 of file IntervalExtractor.hpp.

692 {
693 if (m_context) {
694 return;
695 }
696 if (!m_recording) {
698 }
700 GpuComputeConfig { .shader_path = interval_scan_shader, .workgroup_size = { 1, 1, 1 }, .push_constant_size = sizeof(IntervalScanPC) });
701 m_context->set_recording(m_recording);
702 if (!m_context->ensure_gpu_ready()) {
704 std::source_location::current(), "IntervalExtractor needs a graphics device and none is available");
705 }
706 }
std::unique_ptr< ShaderExecutionContext<> > m_context
std::shared_ptr< GpuDispatchRecorder > m_recording
Finds where each score sequence is engaged, on the GPU, as a stream.

Referenced by MayaFlux::Yantra::IntervalExtractor< Eigen::MatrixXd, std::vector< std::vector< double > > >::bind_scores(), MayaFlux::Yantra::IntervalExtractor< Eigen::MatrixXd, std::vector< std::vector< double > > >::record_all(), and MayaFlux::Yantra::IntervalExtractor< Eigen::MatrixXd, std::vector< std::vector< double > > >::record_resident().

Here is the caller graph for this function: