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

◆ push_constants()

template<typename T >
void MayaFlux::Nodes::Network::InstanceFieldOperator::push_constants ( const T &  data)
inline

Update push constants on the attached GPU executor.

Arms the next dispatch by calling set_dirty() after the push. No-op if no GPU executor is attached.

Template Parameters
TTrivially copyable struct matching the shader push constant layout.
Parameters
dataPush constant data.

Definition at line 101 of file InstanceFieldOperator.hpp.

102 {
103 if (m_executor)
104 m_executor->push(data);
105 if (m_compute_node)
106 m_compute_node->set_dirty();
107 }
std::shared_ptr< Nodes::GpuSync::GpuComputeNode > m_compute_node
std::shared_ptr< Yantra::ShaderExecutionContext<> > m_executor