|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inline |
Declare a function emitted before main() in the generated GLSL.
| return_type | GLSL return type spelling. |
| name | Function name, callable from the kernel body. |
| params | Parameter list verbatim, including types ("vec3 p"). |
| body | Function body text without the enclosing braces. |
Requires a kernel supplied via MF_KERNEL. Names are emitted as given; two functions sharing a name produce a GLSL redefinition error rather than a silent override.
Definition at line 490 of file ShaderSpec.hpp.
References m_functions, and name.
Referenced by MayaFlux::Nodes::Network::GpuFieldOperator::build_spec().
Here is the caller graph for this function: