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

◆ bind_params()

template<typename Operator >
Influence< glm::vec4 >::Target MayaFlux::Nexus::bind_params ( const Operator &  op)

Target that sets the parameter block of a GpuFieldOperator's parametric fields.

Parameters
opGpuFieldOperator, raw pointer or shared_ptr; retained by the target.

The influence's value is the vec4 parametric fields receive as their third argument. It is pushed every dispatch, so nothing is rebound or recompiled.

Definition at line 133 of file FieldTargets.hpp.

134{
135 return [op](const glm::vec4& params) { op->set_params(params); };
136}