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

◆ parametric_field()

template<typename Lambda >
auto MayaFlux::Kinesis::parametric_field ( std::string  name,
Lambda &&  ,
std::string_view  text 
)

Build a ParametricField from a lambda and its stringified text.

The second parameter must be float and the third glm::vec4. Domain and range are deduced from the call operator. Prefer MF_FIELD_P: this cannot check that fn and text correspond.

Definition at line 228 of file DualField.hpp.

229{
231 using D = typename Sig::domain;
232 using R = typename Sig::range;
233
234 static_assert(std::is_same_v<typename Sig::aux, float>,
235 "MF_FIELD_P: the second parameter must be float");
236 static_assert(std::is_same_v<typename Sig::params, glm::vec4>,
237 "MF_FIELD_P: the third parameter must be vec4");
238
239 return ParametricField<D, R> {
240 .source = FieldSource::parse(std::move(name), text),
241 };
242}
std::string name
Definition VKDevice.cpp:123
An authored expression of position, time and a parameter block, shader-only.
Extracts domain and range types from a non-generic lambda.
Definition DualField.hpp:23

References name, MayaFlux::Kinesis::FieldSource::parse(), and MayaFlux::Kinesis::ParametricField< D, R >::source.

+ Here is the call graph for this function: