|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| auto MayaFlux::Kinesis::dual_field | ( | std::string | name, |
| Lambda && | fn, | ||
| std::string_view | text | ||
| ) |
Build a DualField from a lambda and its stringified text.
| name | Name the emitted GLSL function will carry. |
| fn | The lambda itself, compiled by the host. |
| text | The same lambda stringified, parsed into GLSL. |
Domain and range are deduced from the lambda's call operator, so the returned type follows the authored signature rather than being spelled at the call site. Prefer MF_FIELD: this function cannot check that fn and text correspond, and passing a mismatched pair produces a field whose halves disagree silently.
Definition at line 140 of file DualField.hpp.
References MayaFlux::Kinesis::DualField< D, R >::cpu, MayaFlux::Kinesis::Tendency< D, R >::fn, name, and MayaFlux::Kinesis::FieldSource::parse().
Here is the call graph for this function: