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

◆ GpuComputeNode()

MayaFlux::Nodes::GpuSync::GpuComputeNode::GpuComputeNode ( std::shared_ptr< Yantra::ShaderExecutionContext<> >  executor,
bool  continuous = false 
)
explicit

Construct with a configured ShaderExecutionContext.

Parameters
executorConfigured executor. Must be non-null. Bindings, push constants, and shader path must already be declared.
continuousIf true, a new dispatch is armed immediately after each completion. If false, the node idles until set_dirty() is called again.

Definition at line 8 of file GpuComputeNode.cpp.

11 : m_executor(std::move(executor))
12 , m_continuous(continuous)
13{
14 if (!m_executor) {
15 error<std::invalid_argument>(
17 std::source_location::current(),
18 "GpuComputeNode: null ShaderExecutionContext");
19 }
20}
std::shared_ptr< Yantra::ShaderExecutionContext<> > m_executor
@ Init
Engine/subsystem initialization.
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References MayaFlux::Journal::Init, m_executor, and MayaFlux::Journal::Nodes.