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

◆ execute()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
output_type MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::execute ( const input_type input,
const ExecutionContext ctx 
)
inlineoverridevirtual

Injects multipass configuration into the context before dispatch when set_multipass() has been called.

Reimplemented from MayaFlux::Yantra::GpuExecutionContext< InputType, OutputType >.

Definition at line 378 of file ShaderExecutionContext.hpp.

379 {
381 ExecutionContext chained = ctx;
382 chained.mode = ExecutionMode::CHAINED;
383 chained.parameters = ChainedParams { .pass_count = m_multipass_count, .pc_updater = m_multipass_updater };
385 }
387 }
Core::GlobalInputConfig input
Definition Config.cpp:38
virtual output_type execute(const input_type &input, const ExecutionContext &ctx)
Dispatch to GPU and reconstruct a typed output Datum.
std::function< void(uint32_t, void *)> m_multipass_updater
@ CHAINED
Part of a sequential chain.

References MayaFlux::Yantra::CHAINED, MayaFlux::Yantra::GpuExecutionContext< InputType, OutputType >::execute(), input, MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::m_multipass_count, MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::m_multipass_updater, MayaFlux::Yantra::ExecutionContext::mode, MayaFlux::Yantra::ExecutionContext::parameters, and MayaFlux::Yantra::ChainedParams::pass_count.

Referenced by MayaFlux::Yantra::VisionSorter< InputType, OutputType >::apply_operation_internal().

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