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

◆ GpuTransformer()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
MayaFlux::Yantra::GpuTransformer< InputType, OutputType >::GpuTransformer ( std::shared_ptr< GpuExecutionContext< InputType, OutputType > >  executor)
inlineexplicit

Construct with a configured GpuExecutionContext.

Parameters
executorConfigured executor. Must not be null.

Definition at line 40 of file GpuTransformer.hpp.

42 {
43 assert(executor && "GpuTransformer: executor must not be null");
44 m_executor = executor;
45 this->set_gpu_backend(std::move(executor));
46 }
void set_gpu_backend(std::shared_ptr< GpuExecutionContext< InputType, OutputType > > backend)
Attach a GPU execution backend.
std::shared_ptr< GpuExecutionContext< InputType, OutputType > > m_executor