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

◆ temporal_field()

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

Build a TemporalField from a lambda and its stringified text.

The auxiliary parameter must be float. Domain and range are deduced from the call operator, so the returned type follows the authored signature. Prefer MF_FIELD_T: this cannot check that fn and text correspond.

Definition at line 160 of file DualField.hpp.

161{
163 using D = typename Sig::domain;
164 using R = typename Sig::range;
165
166 static_assert(std::is_same_v<typename Sig::aux, float>,
167 "MF_FIELD_T: the second parameter must be float");
168
169 return TemporalField<D, R> {
170 .source = FieldSource::parse(std::move(name), text),
171 };
172}
std::string name
Definition VKDevice.cpp:143
An authored expression of position and time, 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::TemporalField< D, R >::source.

+ Here is the call graph for this function: